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:
John Mulligan 2020-03-23 16:55:42 -04:00 committed by John Mulligan
parent ab178bc7ed
commit 6a08124775
1 changed files with 1 additions and 1 deletions

View File

@ -65,10 +65,10 @@ func useMount(t *testing.T) {
}
func TestCreateMount(t *testing.T) {
mount := fsConnect(t)
mount, err := CreateMount()
assert.NoError(t, err)
assert.NotNil(t, mount)
assert.NoError(t, mount.Release())
}
func fsConnect(t *testing.T) *MountInfo {