From 6a08124775732c8e932762274e733862622da6f7 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 23 Mar 2020 16:55:42 -0400 Subject: [PATCH] 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 --- cephfs/cephfs_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cephfs/cephfs_test.go b/cephfs/cephfs_test.go index 2761745..390f32d 100644 --- a/cephfs/cephfs_test.go +++ b/cephfs/cephfs_test.go @@ -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 {