mirror of https://github.com/ceph/go-ceph
cephfs: remove directory created in the ChangeDir test
The test function that exercises ChangeDir was creating a directory and leaving it behind. Add some basic cleanup to the test to try and avoid leaking stuff between test runs. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
36196c5e60
commit
4277d40137
|
@ -130,6 +130,11 @@ func TestChangeDir(t *testing.T) {
|
|||
assert.NotEqual(t, dir1, dir2)
|
||||
assert.Equal(t, dir1, "/")
|
||||
assert.Equal(t, dir2, "/asdf")
|
||||
|
||||
err = mount.ChangeDir("/")
|
||||
assert.NoError(t, err)
|
||||
err = mount.RemoveDir("/asdf")
|
||||
assert.NoError(t, err)
|
||||
}
|
||||
|
||||
func TestRemoveDir(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue