Skip to content

Commit ef2a83e

Browse files
retry with 10ms
1 parent 91eed9e commit ef2a83e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

integration-tests/common/LoadTest.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const TEST_TIMEOUT = 60000 * 10; // 60 seconds
1212
describe("Load Test for ECONNRESET", () => {
1313
jest.setTimeout(TEST_TIMEOUT);
1414

15-
test(`should handle ${CONCURRENT_REQUESTS} staggered GET requests (1 every 5ms) without ECONNRESET`, async () => {
15+
test(`should handle ${CONCURRENT_REQUESTS} staggered GET requests (1 every 10ms) without ECONNRESET`, async () => {
1616
const client = await orkesConductorClient();
1717
const executor = new WorkflowExecutor(client);
1818

@@ -41,7 +41,7 @@ describe("Load Test for ECONNRESET", () => {
4141
`Starting load test with workflow execution ID: ${executionId}`
4242
);
4343
console.log(
44-
`Sending ${CONCURRENT_REQUESTS} staggered requests (1 every 5ms)...`
44+
`Sending ${CONCURRENT_REQUESTS} staggered requests (1 every 10ms)...`
4545
);
4646

4747
// Create an array to hold all the request promises.
@@ -52,7 +52,7 @@ describe("Load Test for ECONNRESET", () => {
5252

5353
if (i < CONCURRENT_REQUESTS - 1) {
5454
// Wait 100ms before starting the next request.
55-
await new Promise((resolve) => setTimeout(resolve, 5));
55+
await new Promise((resolve) => setTimeout(resolve, 10));
5656
}
5757
}
5858

0 commit comments

Comments
 (0)