Skip to content

Commit 709ab98

Browse files
committed
Troubleshooting flaky test
1 parent 18b644e commit 709ab98

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

services-custom/s3-transfer-manager/src/it/java/software/amazon/awssdk/transfer/s3/S3TransferManagerDownloadPauseResumeIntegrationTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,9 @@ void pauseAndResume_fileChanged_shouldStartFromBeginning() throws IOException {
149149

150150
private static void verifyFileDownload(Path path, ResumableFileDownload resumableFileDownload, long expectedBytesTransferred) {
151151
FileDownload resumedFileDownload = tm.resumeDownloadFile(resumableFileDownload);
152-
resumedFileDownload.progress().snapshot();
153152
resumedFileDownload.completionFuture().join();
154-
assertThat(path.toFile()).hasSameBinaryContentAs(sourceFile);
155153
assertThat(resumedFileDownload.progress().snapshot().transferSizeInBytes()).hasValue(expectedBytesTransferred);
154+
assertThat(path.toFile()).hasSameBinaryContentAs(sourceFile);
156155
}
157156

158157
private static void waitUntilFirstByteBufferDelivered(FileDownload download) {

0 commit comments

Comments
 (0)