Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2020-07-15 10:47:50 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-07-24 07:49:29 +0300
commit8ae49b3597e2ceaebfe4da66b555db4293a2e00c (patch)
tree92743acd8dbfa8db149d4b22c8f8f41552acc056 /internal/source/gitlab/cache/cache_test.go
parent11eaa4f759a746ee621f85362bae0512cb96497a (diff)
Enable polling in the source domains
Enables gitlabClient.Poll in the domain source init.
Diffstat (limited to 'internal/source/gitlab/cache/cache_test.go')
-rw-r--r--internal/source/gitlab/cache/cache_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/source/gitlab/cache/cache_test.go b/internal/source/gitlab/cache/cache_test.go
index 7a12cd3b..27bd449a 100644
--- a/internal/source/gitlab/cache/cache_test.go
+++ b/internal/source/gitlab/cache/cache_test.go
@@ -69,6 +69,8 @@ func (c *client) GetLookup(ctx context.Context, _ string) api.Lookup {
return lookup
}
+func (c *client) Poll(int, time.Duration, chan error) {}
+
func withTestCache(config resolverConfig, cacheConfig *cacheConfig, block func(*Cache, *client)) {
var chanSize int