Skip to content

Commit fccb07c

Browse files
committed
fix test cases for nesting mode
1 parent 28df24b commit fccb07c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sdk-integration-tests/src/test/java/software/amazon/lambda/durable/ParallelIntegrationTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,8 @@ void testParallelWithFirstSuccessful_earlyTermination(NestingType nestingType, i
11511151

11521152
var result = runner.runUntilComplete("test");
11531153
assertEquals(ExecutionStatus.SUCCEEDED, result.getStatus());
1154-
assertEquals(events, result.getHistoryEvents().size());
1154+
// might 4 if only 1 branch completed and at most 8 if all branches completed
1155+
assertTrue(4 <= result.getHistoryEvents().size());
1156+
assertTrue(result.getHistoryEvents().size() <= events);
11551157
}
11561158
}

0 commit comments

Comments
 (0)