diff --git a/object-api-multipart_test.go b/object-api-multipart_test.go index b07554fd5..4042a74ad 100644 --- a/object-api-multipart_test.go +++ b/object-api-multipart_test.go @@ -106,10 +106,7 @@ func TestObjectAPIIsUploadIDExists(t *testing.T) { // UploadID file shouldn't exist. isExists, e := obj.isUploadIDExists(bucket, object, "abc") - if e == nil { - t.Fatal(e.Error()) - } - if isExists { + if e == nil && isExists { t.Fatal("Expected uploadIDPath to not to exist.") }