Skip to content

Commit 3bc6cdf

Browse files
committed
junit parallel execution
1 parent ea4b87f commit 3bc6cdf

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

test/s3-tests/src/it/java/software/amazon/awssdk/services/s3/regression/DownloadStreamingRegressionTesting.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,7 @@ static ObjectWithCRC uploadMultiPartObject() throws Exception {
230230

231231
static void doMultipartUpload(BucketType bucketType, String objectName, byte[] content) {
232232
String bucket = bucketForType(bucketType);
233-
LOG.debug(() -> String.format("Uploading multipart object for bucket type: %s - %s", bucketType, bucket)
234-
);
233+
LOG.debug(() -> String.format("Uploading multipart object for bucket type: %s - %s", bucketType, bucket));
235234
CreateMultipartUploadRequest createMulti = CreateMultipartUploadRequest.builder()
236235
.bucket(bucket)
237236
.key(objectName)
@@ -264,7 +263,6 @@ static void doMultipartUpload(BucketType bucketType, String objectName, byte[] c
264263
LOG.debug(() -> "Finishing MPU, completed parts: " + completedParts);
265264

266265
s3.completeMultipartUpload(req -> req.multipartUpload(u -> u.parts(completedParts))
267-
// .checksumCRC32(fullContentCRC32)
268266
.bucket(bucket)
269267
.key(objectName)
270268
.uploadId(uploadId));
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#
2+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License").
5+
# You may not use this file except in compliance with the License.
6+
# A copy of the License is located at
7+
#
8+
# http://aws.amazon.com/apache2.0
9+
#
10+
# or in the "license" file accompanying this file. This file is distributed
11+
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
# express or implied. See the License for the specific language governing
13+
# permissions and limitations under the License.
14+
#
15+
16+
junit.jupiter.execution.parallel.enabled = true
17+
junit.jupiter.execution.parallel.config.dynamic.factor = 8
18+
19+
junit.jupiter.execution.parallel.mode.default = same_thread
20+
junit.jupiter.execution.parallel.mode.classes.default = concurrent

0 commit comments

Comments
 (0)