xl/fs: Return InvalidPart{} error for part ETag mismatch. (#4541)

Fixes #4539
This commit is contained in:
Harshavardhana
2017-06-17 11:20:39 -07:00
committed by GitHub
parent e99244be02
commit a86c2e2ce1
6 changed files with 6 additions and 6 deletions

View File

@@ -2252,7 +2252,7 @@ func testAPICompleteMultipartHandler(obj ObjectLayer, instanceType, bucketName s
accessKey: credentials.AccessKey,
secretKey: credentials.SecretKey,
expectedContent: encodeResponse(getAPIErrorResponse(getAPIError(toAPIErrorCode(BadDigest{})),
expectedContent: encodeResponse(getAPIErrorResponse(getAPIError(toAPIErrorCode(InvalidPart{})),
getGetObjectURL("", bucketName, objectName))),
expectedRespStatus: http.StatusBadRequest,
},