mirror of https://github.com/ceph/go-ceph
cephfs: TestCreateMount should not try to mount twice
Somehow we managed to introduce extra code into TestCreateMount that had it create two mounts. This is undesirable for this test so this change eliminates the extra unwanted invocation. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
ab178bc7ed
commit
6a08124775
|
@ -65,10 +65,10 @@ func useMount(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCreateMount(t *testing.T) {
|
func TestCreateMount(t *testing.T) {
|
||||||
mount := fsConnect(t)
|
|
||||||
mount, err := CreateMount()
|
mount, err := CreateMount()
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
assert.NotNil(t, mount)
|
assert.NotNil(t, mount)
|
||||||
|
assert.NoError(t, mount.Release())
|
||||||
}
|
}
|
||||||
|
|
||||||
func fsConnect(t *testing.T) *MountInfo {
|
func fsConnect(t *testing.T) *MountInfo {
|
||||||
|
|
Loading…
Reference in New Issue