Skip to content

Commit 35a103d

Browse files
authored
fix: increase timeout for abort tests to reduce flakiness (#370)
1 parent ef2d35d commit 35a103d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/integration/suite.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ export function createIntegrationTestsSuite(
847847
.catch(() => undefined);
848848

849849
// Abort right away
850-
setTimeout(() => controller.abort(), 1000);
850+
setTimeout(() => controller.abort(), 3000);
851851

852852
// Ensure the request completes/cancels before proceeding
853853
await requestPromise;
@@ -866,7 +866,7 @@ export function createIntegrationTestsSuite(
866866
return run.status === 'ABORTED' || run.status === 'ABORTING';
867867
}
868868
return false;
869-
}, { timeout: 3000, interval: 500 });
869+
}, { timeout: 10000, interval: 500 });
870870
});
871871

872872
// Cancellation test using call-actor tool: start a long-running actor via call-actor and cancel immediately, then verify it was aborted
@@ -892,7 +892,7 @@ export function createIntegrationTestsSuite(
892892
.catch(() => undefined);
893893

894894
// Abort right away
895-
setTimeout(() => controller.abort(), 1000);
895+
setTimeout(() => controller.abort(), 3000);
896896

897897
// Ensure the request completes/cancels before proceeding
898898
await requestPromise;
@@ -911,7 +911,7 @@ export function createIntegrationTestsSuite(
911911
return run.status === 'ABORTED' || run.status === 'ABORTING';
912912
}
913913
return false;
914-
}, { timeout: 3000, interval: 500 });
914+
}, { timeout: 10000, interval: 500 });
915915
});
916916

917917
// Environment variable tests - only applicable to stdio transport

0 commit comments

Comments
 (0)