forked from TrueCloudLab/rclone
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()
|
defer r.Finalise()
|
||||||
|
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
defer cancel()
|
|
||||||
|
|
||||||
c, err := newCache(ctx, r.Fremote, &DefaultOpt)
|
c, err := newCache(ctx, r.Fremote, &DefaultOpt)
|
||||||
|
cancel() // kill the background cache cleaning as it interferes with the tests
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
assert.Contains(t, c.root, "vfs")
|
assert.Contains(t, c.root, "vfs")
|
||||||
|
|
Loading…
Reference in a new issue