diff --git a/pkg/fs/fs_test.go b/pkg/fs/fs_test.go index 9ec2a70bb..879de0847 100644 --- a/pkg/fs/fs_test.go +++ b/pkg/fs/fs_test.go @@ -129,6 +129,11 @@ func cammountTest(t *testing.T, fn func(env *mountEnv)) { if err != nil { t.Fatal(err) } + defer func() { + if err := os.RemoveAll(mountPoint); err != nil { + t.Fatal(err) + } + }() verbose := "false" var stderrDest io.Writer = ioutil.Discard if v, _ := strconv.ParseBool(os.Getenv("VERBOSE_FUSE")); v {