diff options
Diffstat (limited to 'internal/source/gitlab/cache/cache_test.go')
-rw-r--r-- | internal/source/gitlab/cache/cache_test.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/source/gitlab/cache/cache_test.go b/internal/source/gitlab/cache/cache_test.go index 3a5a2e8f..53e61582 100644 --- a/internal/source/gitlab/cache/cache_test.go +++ b/internal/source/gitlab/cache/cache_test.go @@ -67,9 +67,7 @@ func (cache *Cache) withTestEntry(config entryConfig, block func(*Entry)) { entry := cache.store.LoadOrCreate(domain) if config.retrieved { - newResponse := make(chan Lookup, 1) - newResponse <- Lookup{Domain: Domain{Name: domain}, Status: 200} - entry.setResponse(newResponse) + entry.setResponse(Lookup{Domain: Domain{Name: domain}, Status: 200}) } if config.expired { |