Commit e94d1080 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Change some panics to errors in test.

parent 54b42724
......@@ -447,8 +447,9 @@ func TestUnionFsRename(t *testing.T) {
t.Errorf("Should have lost file1")
}
_, err = os.Lstat(wd + "/mnt/file2")
CheckSuccess(err)
if err != nil {
t.Errorf("Should have gotten file2: %v", err)
}
err = os.Rename(wd+"/mnt/file2", wd+"/mnt/file1")
CheckSuccess(err)
......@@ -457,8 +458,9 @@ func TestUnionFsRename(t *testing.T) {
t.Errorf("Should have lost file2")
}
_, err = os.Lstat(wd + "/mnt/file1")
CheckSuccess(err)
if err != nil {
t.Errorf("Should have gotten file1: %v", err)
}
clean()
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment