fix: windows tests for all cases (#9594)

Replaces #9299
This commit is contained in:
Klaus Post authored and GitHub committed 2020-05-13 23:55:38 -07:00
1 parent 9c85928740
commit ee9077db7d
7 files changed
+74 -44

No files matched your search

+1 -1
View File
@@ -279,7 +279,7 @@ func TestFSDeleteObject(t *testing.T) {
t.Fatal("Unexpected error: ", err)
}
// Test with invalid object name
if err := fs.DeleteObject(GlobalContext, bucketName, "\\"); !isSameType(err, ObjectNotFound{}) {
if err := fs.DeleteObject(GlobalContext, bucketName, "\\"); !(isSameType(err, ObjectNotFound{}) || isSameType(err, ObjectNameInvalid{})) {
t.Fatal("Unexpected error: ", err)
}
// Test with object does not exist.