Skip to content

Commit 51fc221

Browse files
committed
fix broken test
1 parent 7cd4477 commit 51fc221

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/aws-durable-execution-sdk-js-testing/src/checkpoint-server/worker/__tests__/checkpoint-worker.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,15 @@ describe("CheckpointWorker", () => {
249249

250250
it("should handle StartInvocation API with proper delegation", () => {
251251
const executionId = createExecutionId("exec-start-123");
252+
const invocationId = createInvocationId("inv-start-456");
252253
const command: WorkerCommand = {
253254
type: WorkerCommandType.API_REQUEST,
254255
data: {
255256
type: ApiType.StartInvocation,
256257
requestId: "start-request-123",
257258
params: {
258259
executionId,
260+
invocationId,
259261
},
260262
},
261263
};
@@ -264,7 +266,7 @@ describe("CheckpointWorker", () => {
264266
checkpointToken: createCheckpointToken("start-token"),
265267
executionId,
266268
operationEvents: [],
267-
invocationId: createInvocationId(),
269+
invocationId,
268270
};
269271
mockApiHandlerInstance.performApiCall.mockReturnValue(
270272
mockInvocationResult,

0 commit comments

Comments
 (0)