mirror of
https://github.com/rclone/rclone.git
synced 2024-11-07 17:14:44 +01:00
vfs: fix another race in cache tests
This commit is contained in:
parent
a5c3bcc9c7
commit
8a9ed57951
@ -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 New Issue
Block a user