Skip to content

Commit c3bd10f

Browse files
committed
add assertion for succeeded operations in run-in-child-context test
1 parent 82322c4 commit c3bd10f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/aws-durable-execution-sdk-js-examples/src/examples/run-in-child-context/checkpoint-size-limit/run-in-child-context-checkpoint-size-limit.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import { handler } from "./run-in-child-context-checkpoint-size-limit";
22
import historyEvents from "./run-in-child-context-checkpoint-size-limit.history.json";
33
import { createTests } from "../../../utils/test-helper";
44

5-
const CHECKPOINT_SIZE_LIMIT = 256 * 1024;
6-
75
createTests({
86
name: "run-in-child-context-checkpoint-size-limit boundary test",
97
functionName: "run-in-child-context-checkpoint-size-limit",
@@ -18,7 +16,11 @@ createTests({
1816
expect(result.success).toBe(true);
1917

2018
// Verify totalIterations matches actual operations created
21-
expect(result.totalIterations).toBe(execution.getOperations().length);
19+
expect(result.totalIterations).toBe(
20+
execution.getOperations({
21+
status: "SUCCEEDED",
22+
}).length,
23+
);
2224

2325
assertEventSignatures(execution.getHistoryEvents(), historyEvents);
2426
}, 120000);

0 commit comments

Comments
 (0)