From ea9b3aa060205cbcc162944310bbac188f87c551 Mon Sep 17 00:00:00 2001 From: Steve Moyer Date: Tue, 3 Jan 2023 20:47:58 -0500 Subject: [PATCH] fix(TestCache): eliminate hanging Windows tests --- cache/repo_cache_test.go | 7 +++++++ 1 file changed, 7 insertions(+) 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) {