test: Add context to mockfs.NewFs #3257 #4685

This commit is contained in:
Nick Craig-Wood
2020-11-05 16:00:08 +00:00
parent d846210978
commit d69b96a94c
7 changed files with 12 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ import (
)
func mockNewFs(t *testing.T) func() {
f := mockfs.NewFs("mock", "mock")
f := mockfs.NewFs(context.Background(), "mock", "mock")
cache.Put("/", f)
return func() {
cache.Clear()