Skip to content

Commit c0005cd

Browse files
authored
test(node): Update timeout for cron integration tests (#20586)
Saw this flake once or twice, just increasing timeout for cron tests to allow for slow runner startup etc.
1 parent 971aade commit c0005cd

8 files changed

Lines changed: 8 additions & 8 deletions

File tree

dev-packages/node-integration-tests/suites/cron/cron/scenario.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ cron.start();
2727

2828
setTimeout(() => {
2929
process.exit();
30-
}, 5000);
30+
}, 15_000);

dev-packages/node-integration-tests/suites/cron/cron/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ afterAll(() => {
55
cleanupChildProcesses();
66
});
77

8-
test('cron instrumentation', async () => {
8+
test('cron instrumentation', { timeout: 30_000 }, async () => {
99
await createRunner(__dirname, 'scenario.ts')
1010
.expect({
1111
check_in: {

dev-packages/node-integration-tests/suites/cron/node-cron/base/scenario.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ const task = cronWithCheckIn.schedule(
3333

3434
setTimeout(() => {
3535
process.exit();
36-
}, 5000);
36+
}, 15_000);

dev-packages/node-integration-tests/suites/cron/node-cron/base/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ afterAll(() => {
55
cleanupChildProcesses();
66
});
77

8-
test('node-cron instrumentation', async () => {
8+
test('node-cron instrumentation', { timeout: 30_000 }, async () => {
99
await createRunner(__dirname, 'scenario.ts')
1010
.expect({
1111
check_in: {

dev-packages/node-integration-tests/suites/cron/node-cron/isolateTrace/scenario.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ const task2 = cronWithCheckIn.schedule(
5353

5454
setTimeout(() => {
5555
process.exit();
56-
}, 5000);
56+
}, 15_000);

dev-packages/node-integration-tests/suites/cron/node-cron/isolateTrace/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ afterAll(() => {
55
cleanupChildProcesses();
66
});
77

8-
test('node-cron instrumentation', async () => {
8+
test('node-cron instrumentation', { timeout: 30_000 }, async () => {
99
let firstErrorTraceId: string | undefined;
1010

1111
await createRunner(__dirname, 'scenario.ts')

dev-packages/node-integration-tests/suites/cron/node-schedule/scenario.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ const job = scheduleWithCheckIn.scheduleJob('my-cron-job', '* * * * * *', () =>
2525

2626
setTimeout(() => {
2727
process.exit();
28-
}, 5000);
28+
}, 15_000);

dev-packages/node-integration-tests/suites/cron/node-schedule/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ afterAll(() => {
55
cleanupChildProcesses();
66
});
77

8-
test('node-schedule instrumentation', async () => {
8+
test('node-schedule instrumentation', { timeout: 30_000 }, async () => {
99
await createRunner(__dirname, 'scenario.ts')
1010
.expect({
1111
check_in: {

0 commit comments

Comments
 (0)