mirror of https://github.com/ceph/go-ceph
cephfs: have test cases remove dirs they create
To prevent test failures re-reunning the suite against the same fs we need to make sure tests clean up after themselves. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
175cba3388
commit
673c60bc51
|
@ -203,6 +203,7 @@ func TestChmodDir(t *testing.T) {
|
|||
|
||||
err := mount.MakeDir(dirname, stats_before)
|
||||
assert.NoError(t, err)
|
||||
defer mount.RemoveDir(dirname)
|
||||
|
||||
err = mount.SyncFs()
|
||||
assert.NoError(t, err)
|
||||
|
@ -235,6 +236,7 @@ func TestChown(t *testing.T) {
|
|||
|
||||
err := mount.MakeDir(dirname, 0755)
|
||||
assert.NoError(t, err)
|
||||
defer mount.RemoveDir(dirname)
|
||||
|
||||
err = mount.SyncFs()
|
||||
assert.NoError(t, err)
|
||||
|
|
Loading…
Reference in New Issue