Skip to content

Commit bcc5f63

Browse files
committed
test: retry flaky test
1 parent bac210e commit bcc5f63

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/specs/cli.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,10 @@ export default testSuite(({ describe }, node: NodeApis) => {
231231
`${signal} HANDLER COMPLETED`,
232232
]);
233233
}
234-
}, 10_000);
234+
}, {
235+
timeout: 10_000,
236+
retry: 3,
237+
});
235238
}
236239
});
237240

@@ -297,7 +300,10 @@ export default testSuite(({ describe }, node: NodeApis) => {
297300
// This is the exit code I get from testing manually with Node
298301
expect(result.exitCode).toBe(137);
299302
}
300-
}, 10_000);
303+
}, {
304+
timeout: 10_000,
305+
retry: 3,
306+
});
301307

302308
describe('Ctrl + C', ({ test }) => {
303309
const CtrlC = '\u0003';

0 commit comments

Comments
 (0)