Skip to content

Commit

Permalink
Fixing flaky test #9776
Browse files Browse the repository at this point in the history
Signed-off-by: Dharmesh 💤 <sdharms@amazon.com>
  • Loading branch information
psychbot committed Sep 6, 2023
1 parent 899ae5d commit 8c54a86
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void testReadContextListener() throws InterruptedException, IOException {
assertEquals(NUMBER_OF_PARTS * PART_SIZE, Files.size(fileLocation));
}

public void testReadContextListenerFailure() throws InterruptedException {
public void testReadContextListenerFailure() throws Exception {
Path fileLocation = path.resolve(UUID.randomUUID().toString());
List<InputStreamContainer> blobPartStreams = initializeBlobPartStreams();
CountDownLatch countDownLatch = new CountDownLatch(1);
Expand Down Expand Up @@ -99,8 +99,7 @@ public int available() {
readContextListener.onResponse(readContext);

countDownLatch.await();

assertFalse(Files.exists(fileLocation));
assertBusy(() -> { assertFalse(Files.exists(fileLocation)); });
}

public void testReadContextListenerException() {
Expand Down

0 comments on commit 8c54a86

Please sign in to comment.