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