Distinguish normal mount from format and mount in SafeFormatAndMount

This commit is contained in:
Sami Wagiaalla
2015-11-05 16:49:40 -05:00
parent 0798915490
commit 66c905d63e
12 changed files with 42 additions and 32 deletions

View File

@@ -156,7 +156,7 @@ func TestSafeFormatAndMount(t *testing.T) {
device := "/dev/foo"
dest := "/mnt/bar"
err := mounter.Mount(device, dest, test.fstype, test.mountOptions)
err := mounter.FormatAndMount(device, dest, test.fstype, test.mountOptions)
if test.expectedError == nil {
if err != nil {
t.Errorf("unexpected non-error: %v", err)