Skip to content

Commit 1afb3f3

Browse files
authored
[test]: fix the flaky test whenItemsExceedMaxBatchSize_flushingQueueSplitsIntoBatches (#198)
* fix flake test whenItemsExceedMaxBatchSize_flushingQueueSplitsIntoBatches * fix flaky testManyAsyncStepsExample
1 parent 96f3ce2 commit 1afb3f3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/src/test/java/software/amazon/lambda/durable/examples/CloudBasedIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ void testChildContextExample() {
466466
}
467467

468468
@ParameterizedTest
469-
@CsvSource({"100, 1000, 10", "500, 2000, 20", "1000, 3000, 30"})
469+
@CsvSource({"100, 1000, 10", "500, 2000, 20", "1000, 3000, 50"})
470470
void testManyAsyncStepsExample(int steps, long maxExecutionTime, long maxReplayTime) {
471471
long minimalExecutionTimeMs = Long.MAX_VALUE;
472472
long minimalReplayTimeMs = Long.MAX_VALUE;

sdk/src/test/java/software/amazon/lambda/durable/execution/ApiRequestDelayedBatcherTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import org.junit.jupiter.api.Test;
2626

2727
class ApiRequestDelayedBatcherTest {
28-
private static final Duration SHORT_DELAY = Duration.ofMillis(1);
28+
private static final Duration SHORT_DELAY = Duration.ofMillis(5);
2929
private static final Duration LONG_DELAY = Duration.ofMillis(100);
3030
private static final int MAX_BATCH_SIZE = 3;
3131
private static final int MAX_BATCH_BINARY_SIZE_IN_BYTES = 200;

0 commit comments

Comments
 (0)