mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
fix testMultipartUploadFailure to properly cleanup (#11137)
This commit is contained in:
parent
4cc500a041
commit
6df6ac0f34
@ -506,7 +506,15 @@ function testMultipartUploadFailure($s3Client, $params) {
|
||||
],
|
||||
],
|
||||
];
|
||||
runExceptionalTests($s3Client, 'completeMultipartUpload', 'getAwsErrorCode', $params);
|
||||
try {
|
||||
runExceptionalTests($s3Client, 'completeMultipartUpload', 'getAwsErrorCode', $params);
|
||||
}finally {
|
||||
$s3Client->abortMultipartUpload([
|
||||
'Bucket' => $bucket,
|
||||
'Key' => $object,
|
||||
'UploadId' => $uploadId
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user