Skip to content

Commit c748b53

Browse files
test: retry flaky test (#531)
1 parent 01eee34 commit c748b53

File tree

4 files changed

+14
-33
lines changed

4 files changed

+14
-33
lines changed

.github/workflows/test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
with:
2222
node-version-file: .nvmrc
2323

24+
- name: Authenticate GitHub registry
25+
run: npm set "//npm.pkg.github.com:_authToken=${{ secrets.GH_TOKEN }}"
26+
2427
- name: Setup pnpm
2528
uses: pnpm/action-setup@v3
2629
with:

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"lint-staged": "^15.1.0",
8282
"lintroll": "^1.4.1",
8383
"magic-string": "^0.30.5",
84-
"manten": "^1.2.0",
84+
"manten": "^1.3.0",
8585
"memfs": "^4.6.0",
8686
"node-pty": "^1.0.0",
8787
"outdent": "^0.8.0",

pnpm-lock.yaml

+6-31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/specs/cli.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,10 @@ export default testSuite(({ describe }, node: NodeApis) => {
332332
'SIGINT HANDLER COMPLETED\r\n',
333333
/EXIT_CODE:\s+200/,
334334
]);
335-
}, 10_000);
335+
}, {
336+
timeout: 10_000,
337+
retry: 3,
338+
});
336339

337340
test('Infinite loop', async () => {
338341
const output = await ptyShell(

0 commit comments

Comments
 (0)