Skip to content

Commit 02e7464

Browse files
retry with undici
1 parent 054e0df commit 02e7464

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

integration-tests/common/LoadTest.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { describe, test, expect, jest } from "@jest/globals";
22
import { orkesConductorClient } from "../../src/orkes";
33
import { WorkflowExecutor } from "../../src/core";
44
import { TaskType } from "../../src/common";
5+
import { fetch as undiciFetch, Agent as UndiciAgent } from "undici";
56

67
// --- Configuration for the Load Test ---
78
// The number of requests to send in parallel.
@@ -45,8 +46,7 @@ describe("Load Test for ECONNRESET", () => {
4546
);
4647

4748
// Create an array to hold all the request promises.
48-
const { fetch: undiciFetch, Agent } = await import("undici");
49-
const undiciAgent = new Agent({
49+
const undiciAgent = new UndiciAgent({
5050
//allowH2: true,
5151
connect: {
5252
timeout: 270000, // Connect timeout in milliseconds (e.g., 60 seconds)

0 commit comments

Comments
 (0)