mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-17 13:10:17 +03:00
Merge pull request #978 from MichaelMure/fix/eliminate-tempdir-test-failures
fix(TestCache): eliminate hanging Windows tests
This commit is contained in:
commit
b1253bd238
7
cache/repo_cache_test.go
vendored
7
cache/repo_cache_test.go
vendored
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user