diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2020-03-30 09:15:43 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2020-03-30 09:15:43 +0300 |
commit | 45a4db750a0450de58007e61d40ed4184a2316ce (patch) | |
tree | 1b177b69e4ef06c16303ed266f30e4d83ff23f2c /internal/source/gitlab/cache/cache_test.go | |
parent | 021adce4fff183aa62441fd4e155e376a1cd8e78 (diff) |
Remove obsolete test case for gitlab source cache
Diffstat (limited to 'internal/source/gitlab/cache/cache_test.go')
-rw-r--r-- | internal/source/gitlab/cache/cache_test.go | 12 |
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 97f0c339..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) { - cc := defaultCacheConfig - cc.retrievalTimeout = 0 - - withTestCache(resolverConfig{}, &cc, func(cache *Cache, resolver *client) { - lookup := cache.Resolve(context.Background(), "my.gitlab.com") - - require.Equal(t, uint64(0), resolver.stats.getLookups()) - require.EqualError(t, lookup.Error, "retrieval context done") - }) - }) - t.Run("when retrieval failed because of an internal retriever context timeout", func(t *testing.T) { cc := defaultCacheConfig cc.retrievalTimeout = 0 |