aboutsummaryrefslogtreecommitdiffstats
path: root/cache
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2023-01-03 20:47:58 -0500
committerSteve Moyer <smoyer1@selesy.com>2023-01-03 20:47:58 -0500
commitea9b3aa060205cbcc162944310bbac188f87c551 (patch)
tree099282b053683905d2e178500dbad2256c325810 /cache
parent5b9f88208fd4b1e87b8fd40195aafbf7da2ecd01 (diff)
downloadgit-bug-ea9b3aa060205cbcc162944310bbac188f87c551.tar.gz
fix(TestCache): eliminate hanging Windows tests
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 796b5db9..ac5a7c75 100644
--- a/cache/repo_cache_test.go
+++ b/cache/repo_cache_test.go
@@ -130,6 +130,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) {