Merge pull request #978 from MichaelMure/fix/eliminate-tempdir-test-failures

fix(TestCache): eliminate hanging Windows tests
This commit is contained in:
Michael Muré 2023-01-04 14:57:18 +01:00 committed by GitHub
commit b1253bd238
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,6 +130,13 @@ func TestCache(t *testing.T) {
require.NoError(t, err) require.NoError(t, err)
_, err = cache.Bugs().ResolvePrefix(bug1.Id().String()[:10]) _, err = cache.Bugs().ResolvePrefix(bug1.Id().String()[:10])
require.NoError(t, err) 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) { func TestCachePushPull(t *testing.T) {