aboutsummaryrefslogtreecommitdiffstats
path: root/cache
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2023-01-08 12:11:53 +0100
committerGitHub <noreply@github.com>2023-01-08 12:11:53 +0100
commitc7662a13acf6db50a45d22e70e7beac3276fe784 (patch)
tree630bd8655a65049bcb58ccada82631d948a07bb1 /cache
parent51161a8fdb97814daa0543692c63b0d8a25a83ff (diff)
parent59684d74776738723901095c73782fbc619138e4 (diff)
downloadgit-bug-c7662a13acf6db50a45d22e70e7beac3276fe784.tar.gz
Merge pull request #976 from MichaelMure/fix/975/patch-security-vulnerabilities
fix: resolve Go vulnerabilities
Diffstat (limited to 'cache')
-rw-r--r--cache/repo_cache_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/cache/repo_cache_test.go b/cache/repo_cache_test.go
index 042498df..39814733 100644
--- a/cache/repo_cache_test.go
+++ b/cache/repo_cache_test.go
@@ -149,6 +149,13 @@ func TestCache(t *testing.T) {
require.NoError(t, err)
_, err = cache.Bugs().ResolvePrefix(bug1.Id().String()[:10])
require.NoError(t, err)
+
+ // Close
+ require.NoError(t, cache.Close())
+ require.Empty(t, cache.bugs.cached)
+ require.Empty(t, cache.bugs.excerpts)
+ require.Empty(t, cache.identities.cached)
+ require.Empty(t, cache.identities.excerpts)
}
func TestCachePushPull(t *testing.T) {