diff --git a/cephfs/path_test.go b/cephfs/path_test.go index 2a46958..6ade4b6 100644 --- a/cephfs/path_test.go +++ b/cephfs/path_test.go @@ -254,6 +254,9 @@ func TestSymlink(t *testing.T) { err = mount.Symlink("/", "someDir") assert.NoError(t, err) + defer func() { + assert.NoError(t, mount.Unlink("someDir")) + }() err = mount.Symlink("someFile", "/") // Error, permission denied.