diff options
author | Steve Moyer <smoyer1@selesy.com> | 2023-01-03 20:17:17 -0500 |
---|---|---|
committer | Steve Moyer <smoyer1@selesy.com> | 2023-01-03 20:17:17 -0500 |
commit | 4cee3a7278a493378429fd32dfa12c27f70bcca3 (patch) | |
tree | 838cd775c4d6e823c76dd02d94703e56573c8c79 /cache | |
parent | 58a6962f4e78afa1208f40578caf7ac2b7a04184 (diff) | |
download | git-bug-4cee3a7278a493378429fd32dfa12c27f70bcca3.tar.gz |
test(cache): close second instance of RepoCache
Diffstat (limited to 'cache')
-rw-r--r-- | cache/repo_cache_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cache/repo_cache_test.go b/cache/repo_cache_test.go index 796b5db9..eeaa0ee5 100644 --- a/cache/repo_cache_test.go +++ b/cache/repo_cache_test.go @@ -130,6 +130,14 @@ 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) { |