Skip to content

Commit fd0b623

Browse files
committed
More test tweaks
1 parent 55047e2 commit fd0b623

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/pull_request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ jobs:
109109
CONDUCTOR_SERVER_URL: ${{ vars.SERVER_URL }}
110110
CONDUCTOR_AUTH_KEY: ${{ secrets.AUTH_KEY }}
111111
CONDUCTOR_AUTH_SECRET: ${{ secrets.AUTH_SECRET }}
112+
CONDUCTOR_REQUEST_TIMEOUT_MS: "120000"
112113
JEST_JUNIT_OUTPUT_NAME: integration-v5-node-22-test-results.xml
113114
- name: Publish Test Results
114115
uses: dorny/test-reporter@v2

src/integration-tests/E2EFiveTaskWorkflow.test.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
import { afterEach, beforeAll, describe, expect, test } from "@jest/globals";
1+
import {
2+
afterEach,
3+
beforeAll,
4+
describe,
5+
expect,
6+
jest,
7+
test,
8+
} from "@jest/globals";
29
import type { Client, Task } from "../open-api";
310
import {
411
TaskHandler,
@@ -17,6 +24,8 @@ describe("E2E: 5-task workflow × 50 executions", () => {
1724
let executor: WorkflowExecutor;
1825
let handler: TaskHandler | undefined;
1926

27+
jest.setTimeout(700_000); // 50 workflows × 5 tasks; CI can be slow (poll timeouts)
28+
2029
beforeAll(async () => {
2130
const client = await clientPromise;
2231
executor = new WorkflowExecutor(client);
@@ -111,10 +120,10 @@ describe("E2E: 5-task workflow × 50 executions", () => {
111120

112121
expect(workflowIds.length).toBe(WORKFLOW_COUNT);
113122

114-
// Wait for all 50 to complete (300s timeout, poll every 2s)
123+
// Wait for all 50 to complete (600s in CI-friendly timeout, poll every 2s)
115124
const results = await Promise.all(
116125
workflowIds.map((id) =>
117-
waitForWorkflowStatus(executor, id, "COMPLETED", 300_000, 2000)
126+
waitForWorkflowStatus(executor, id, "COMPLETED", 600_000, 2000)
118127
)
119128
);
120129

0 commit comments

Comments
 (0)