diff options
author | Michael Muré <batolettre@gmail.com> | 2023-01-04 14:57:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-04 14:57:18 +0100 |
commit | b1253bd238714233cdaa6db34105b23bace4c08d (patch) | |
tree | 099282b053683905d2e178500dbad2256c325810 | |
parent | 5b9f88208fd4b1e87b8fd40195aafbf7da2ecd01 (diff) | |
parent | ea9b3aa060205cbcc162944310bbac188f87c551 (diff) | |
download | git-bug-b1253bd238714233cdaa6db34105b23bace4c08d.tar.gz |
Merge pull request #978 from MichaelMure/fix/eliminate-tempdir-test-failures
fix(TestCache): eliminate hanging Windows tests
-rw-r--r-- | cache/repo_cache_test.go | 7 |
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) { |