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>2021-02-19 08:49:55 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-03-18 03:24:15 +0300
commit085c138ea8361c06d18253a1fe83ec33b9d61a16 (patch)
tree6832e192a945d33d22dd39f8760d9ea2eb0418dd /internal/source
parentf104ed91e6c9400cad4576f826e40dffe0ede3f4 (diff)
Increase test timeout
Diffstat (limited to 'internal/source')
-rw-r--r--internal/source/gitlab/cache/entry_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/source/gitlab/cache/entry_test.go b/internal/source/gitlab/cache/entry_test.go
index 919c89c6..c5f28406 100644
--- a/internal/source/gitlab/cache/entry_test.go
+++ b/internal/source/gitlab/cache/entry_test.go
@@ -102,7 +102,7 @@ func TestEntryRefresh(t *testing.T) {
lookup := entry.Retrieve(ctx)
require.NoError(t, lookup.Error)
- require.Eventually(t, entry.NeedsRefresh, 2*cc.entryRefreshTimeout, time.Millisecond, "entry should need refresh")
+ require.Eventually(t, entry.NeedsRefresh, 100*time.Millisecond, time.Millisecond, "entry should need refresh")
entry.refreshFunc(store)
@@ -125,7 +125,7 @@ func TestEntryRefresh(t *testing.T) {
lookup := entry.Retrieve(ctx)
require.Error(t, lookup.Error)
- require.Eventually(t, entry.NeedsRefresh, 2*cc.entryRefreshTimeout, time.Millisecond, "entry should need refresh")
+ require.Eventually(t, entry.NeedsRefresh, 100*time.Millisecond, time.Millisecond, "entry should need refresh")
// wait for entry to expire
time.Sleep(cc.cacheExpiry)