Skip to content

Commit 1ed1362

Browse files
author
Shailesh Jagannath Padave
committed
Add more timeout
1 parent 0fe8fe3 commit 1ed1362

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/core/__test__/executor.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ describe("Execute with Return Strategy and Consistency", () => {
125125
};
126126

127127
const clientPromise = orkesConductorClient({ useEnvVars: true });
128-
jest.setTimeout(30000);
128+
jest.setTimeout(300000);
129129

130130
let client: any;
131131
let executor: WorkflowExecutor;
@@ -377,7 +377,7 @@ describe("Execute with Return Strategy and Consistency", () => {
377377
executor,
378378
workflowId,
379379
'COMPLETED',
380-
10000, // 10 seconds max wait
380+
300000, // 5 min max wait
381381
200 // 200ms poll interval
382382
);
383383

@@ -446,7 +446,7 @@ describe("Execute with Return Strategy and Consistency", () => {
446446
await executor.signal(workflowId, TaskResultStatusEnum.COMPLETED, { result: "signal1" });
447447
await executor.signal(workflowId, TaskResultStatusEnum.COMPLETED, { result: "signal2" });
448448

449-
await TestUtil.waitForWorkflowStatus(executor, workflowId, 'COMPLETED', 10000, 200);
449+
await TestUtil.waitForWorkflowStatus(executor, workflowId, 'COMPLETED', 300000, 200);
450450
console.log(`✓ ${testCase.name} test completed successfully`);
451451
});
452452
});

0 commit comments

Comments
 (0)