Skip to content

Commit aba45e4

Browse files
retry with undici
1 parent 85de3b7 commit aba45e4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

integration-tests/common/LoadTest.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ describe("Load Test for ECONNRESET", () => {
4747

4848
// Create an array to hold all the request promises.
4949
const undiciAgent = new UndiciAgent({
50+
connectTimeout: 270000,
5051
//allowH2: true,
5152
connect: {
5253
timeout: 270000, // Connect timeout in milliseconds (e.g., 60 seconds)
@@ -63,7 +64,7 @@ describe("Load Test for ECONNRESET", () => {
6364
//requestPromises.push(executor.getWorkflow(executionId, false));
6465
//requestPromises.push(fetch(`https://siliconmint-dev-5x.orkesconductor.io/`));
6566
requestPromises.push(
66-
fetch(`https://google.com/`, { signal: AbortSignal.timeout(1000000) }) //, {
67+
undiciFetch(`https://google.com/`, { dispatcher: undiciAgent }) //, {
6768
// dispatcher: undiciAgent,
6869
// })
6970
);

0 commit comments

Comments
 (0)