Skip to content

Commit

Permalink
Fix sqs worker integration test failure
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna Kondaka <[email protected]>
  • Loading branch information
Krishna Kondaka committed Nov 2, 2023
1 parent 211ac55 commit e8455cf
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ void processSqsMessages_with_acks_and_progress_check_callbacks(final int numberO

lenient().doAnswer((val) -> {
if (val.getArgument(0) != null) {
delCount.getAndAdd((int)(double)val.getArgument(0));
deletedCount += (double)val.getArgument(0);
}
return null;
}).when(deletedCounter).increment(any(Double.class));
Expand Down Expand Up @@ -360,7 +360,7 @@ void processSqsMessages_with_acks_and_progress_check_callbacks(final int numberO
await().atMost(Duration.ofSeconds(20))
.untilAsserted(() -> {
assertThat(visibilityTimeoutChangedCount, greaterThanOrEqualTo((double)numberOfObjectsToWrite));
assertThat(delCount.get(), equalTo(numberOfObjectsToWrite));
assertThat(deletedCount, equalTo((double)numberOfObjectsToWrite));
assertThat(ackCallbackCount, equalTo((double)numberOfObjectsToWrite));
});
}
Expand All @@ -387,7 +387,6 @@ void processSqsMessages_with_acks_and_progress_check_callbacks_expires(final int
lenient().doAnswer((val) -> {
if (val.getArgument(0) != null) {
deletedCount += (double)val.getArgument(0);
delCount.getAndAdd((int)(double)val.getArgument(0));
}
return null;
}).when(deletedCounter).increment(any(Double.class));
Expand Down Expand Up @@ -429,7 +428,7 @@ void processSqsMessages_with_acks_and_progress_check_callbacks_expires(final int
await().atMost(Duration.ofSeconds(10))
.untilAsserted(() -> {
assertThat(visibilityTimeoutChangedCount, greaterThanOrEqualTo((double)numberOfObjectsToWrite));
assertThat(delCount.get(), equalTo(0));
assertThat(deletedCount, equalTo(0.0));
assertThat(ackCallbackCount, equalTo(0.0));
});

Expand Down

0 comments on commit e8455cf

Please sign in to comment.