mirror of
https://github.com/minio/minio.git
synced 2026-11-18 06:58:15 +00:00
1 parent
9c85928740
commit
ee9077db7d
7 files changed
+74
-44
No files matched your search
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user