mirror of https://github.com/ceph/go-ceph
cephfs: clean up symlink created in TestSymlink func
Add a defer to clean up the symlink created by the test. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
83c0acf52c
commit
528893ce1d
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue