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:
-rw-r--r--internal/source/gitlab/cache/cache_test.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/internal/source/gitlab/cache/cache_test.go b/internal/source/gitlab/cache/cache_test.go
index c3e03dec..7a12cd3b 100644
--- a/internal/source/gitlab/cache/cache_test.go
+++ b/internal/source/gitlab/cache/cache_test.go
@@ -232,18 +232,6 @@ func TestResolve(t *testing.T) {
})
})
- t.Run("when retrieval failed because of an external context being canceled", func(t *testing.T) {
- ctx, cancel := context.WithCancel(context.Background())
- cancel()
-
- withTestCache(resolverConfig{}, nil, func(cache *Cache, resolver *client) {
- lookup := cache.Resolve(ctx, "my.gitlab.com")
-
- require.Equal(t, uint64(0), resolver.stats.getLookups())
- require.EqualError(t, lookup.Error, "context done")
- })
- })
-
t.Run("when retrieval failed because of an internal retriever context timeout", func(t *testing.T) {
cc := defaultCacheConfig
cc.retrievalTimeout = 0