Skip to content

Commit ecc1719

Browse files
committedMay 1, 2023
test(e2e): fix start checking
1 parent 24d227b commit ecc1719

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎src/e2e/tests/3-start.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ export const test3Start = async (): Promise<void> => {
1515
})
1616
try {
1717
await waitOn({
18-
resources: [`http-get://localhost:${PORT}/`],
19-
delay: 1000,
20-
timeout: 480_000
18+
resources: [`http-get://127.0.0.1:${PORT}/`],
19+
delay: 10_000,
20+
timeout: 600_000
2121
})
22-
terminate(startSubprocess.pid ?? 0, 'SIGINT', { timeout: 10000 }, () => {
22+
terminate(startSubprocess.pid ?? 0, 'SIGINT', { timeout: 10_000 }, () => {
2323
terminate(startSubprocess?.pid ?? 0)
2424
})
25-
t.pass(`Success: Leon is running on http://localhost:${PORT}/`)
25+
t.pass(`Success: Leon is running on http://127.0.0.1:${PORT}/`)
2626
} catch (error: any) {
27-
terminate(startSubprocess.pid ?? 0, 'SIGINT', { timeout: 10000 }, () => {
27+
terminate(startSubprocess.pid ?? 0, 'SIGINT', { timeout: 10_000 }, () => {
2828
terminate(startSubprocess?.pid ?? 0)
2929
})
3030
t.fail(error)

0 commit comments

Comments
 (0)
Please sign in to comment.