Skip to content

Commit 523a7a8

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

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,7 @@ 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 be fewer if some branches are cancelled before completion
1155+
assertTrue(result.getHistoryEvents().size() <= events);
11551156
}
11561157
}

0 commit comments

Comments
 (0)