Skip to content

Commit ca01cb9

Browse files
retry with fetch
1 parent 02e7464 commit ca01cb9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

integration-tests/common/LoadTest.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { fetch as undiciFetch, Agent as UndiciAgent } from "undici";
77
// --- Configuration for the Load Test ---
88
// The number of requests to send in parallel.
99
// Adjust this number to find the breaking point of your load balancer.
10-
const CONCURRENT_REQUESTS = 1000;
10+
const CONCURRENT_REQUESTS = 500;
1111
const TEST_TIMEOUT = 180000 * 10; // 180 seconds
1212

1313
describe("Load Test for ECONNRESET", () => {
@@ -60,9 +60,9 @@ describe("Load Test for ECONNRESET", () => {
6060
//requestPromises.push(executor.getWorkflow(executionId, false));
6161
//requestPromises.push(fetch(`https://siliconmint-dev-5x.orkesconductor.io/`));
6262
requestPromises.push(
63-
undiciFetch(`https://google.com/`, {
64-
dispatcher: undiciAgent,
65-
})
63+
fetch(`https://google.com/`) //, {
64+
// dispatcher: undiciAgent,
65+
// })
6666
);
6767

6868
// if (i < CONCURRENT_REQUESTS - 1) {

0 commit comments

Comments
 (0)