fix incorrect log

This commit is contained in:
linyouchong
2017-10-26 01:30:33 +08:00
parent f4fb38a25d
commit 02e8ffe13c
21 changed files with 22 additions and 22 deletions

View File

@@ -157,13 +157,13 @@ func doTestPlugin(t *testing.T, spec *volume.Spec) {
if _, err := os.Stat(volumePath); err == nil {
t.Errorf("TearDown() failed, volume path still exists: %s", volumePath)
} else if !os.IsNotExist(err) {
t.Errorf("SetUp() failed: %v", err)
t.Errorf("TearDown() failed: %v", err)
}
if len(fake.Log) != 1 {
t.Errorf("Unmount was not called exactly one time. It was called %d times.", len(fake.Log))
} else {
if fake.Log[0].Action != mount.FakeActionUnmount {
t.Errorf("Unexpected mounter action: %#v", fake.Log[0])
t.Errorf("Unexpected unmounter action: %#v", fake.Log[0])
}
}