vfs: fix another race in cache tests
This commit is contained in:
parent
a5c3bcc9c7
commit
8a9ed57951
1 changed files with 1 additions and 1 deletions
|
@ -63,9 +63,9 @@ func TestCacheNew(t *testing.T) {
|
|||
defer r.Finalise()
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
|
||||
c, err := newCache(ctx, r.Fremote, &DefaultOpt)
|
||||
cancel() // kill the background cache cleaning as it interferes with the tests
|
||||
require.NoError(t, err)
|
||||
|
||||
assert.Contains(t, c.root, "vfs")
|
||||
|
|
Loading…
Reference in a new issue