fix testMultipartUploadFailure to properly cleanup (#11137)

master
Yingrong Zhao 4 years ago committed by GitHub
parent 4cc500a041
commit 6df6ac0f34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      mint/run/core/aws-sdk-php/quick-tests.php

@ -506,7 +506,15 @@ function testMultipartUploadFailure($s3Client, $params) {
],
],
];
try {
runExceptionalTests($s3Client, 'completeMultipartUpload', 'getAwsErrorCode', $params);
}finally {
$s3Client->abortMultipartUpload([
'Bucket' => $bucket,
'Key' => $object,
'UploadId' => $uploadId
]);
}
}
/**

Loading…
Cancel
Save