mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
Distinguish normal mount from format and mount in SafeFormatAndMount
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user