Skip to content

Commit

Permalink
test: retry flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Apr 25, 2024
1 parent bac210e commit bcc5f63
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/specs/cli.ts
Expand Up @@ -231,7 +231,10 @@ export default testSuite(({ describe }, node: NodeApis) => {
`${signal} HANDLER COMPLETED`,
]);
}
}, 10_000);
}, {
timeout: 10_000,
retry: 3,
});
}
});

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

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

0 comments on commit bcc5f63

Please sign in to comment.