fix: windows tests for all cases (#9594)

Replaces #9299
This commit is contained in:
Klaus Post
2020-05-14 08:55:38 +02:00
committed by GitHub
parent 9c85928740
commit ee9077db7d
7 changed files with 74 additions and 44 deletions
+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.