Skip to content

Commit 3ab7052

Browse files
fix(modernjs): wait for port 4001 instead of sleeping to deflake CI
1 parent d57dd38 commit 3ab7052

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.ci-logs/e2e-modern.log

Whitespace-only changes.

apps/modernjs/project.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@
6363
"parallel": true,
6464
"commands": [
6565
{
66-
"command": "lsof -i :4001 || nx run modernjs:serve & echo 'done'",
66+
"command": "nx run modernjs:serve & wait-on tcp:4001",
6767
"forwardAllArgs": false
6868
},
6969
{
70-
"command": "sleep 20 && nx run modernjs:e2e",
70+
"command": "nx run modernjs:e2e",
7171
"forwardAllArgs": true
7272
}
7373
]

0 commit comments

Comments
 (0)