Skip to content

Commit

Permalink
test(e2e): fix start checking
Browse files Browse the repository at this point in the history
  • Loading branch information
theoludwig committed May 1, 2023
1 parent 24d227b commit ecc1719
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/e2e/tests/3-start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ export const test3Start = async (): Promise<void> => {
})
try {
await waitOn({
resources: [`http-get://localhost:${PORT}/`],
delay: 1000,
timeout: 480_000
resources: [`http-get://127.0.0.1:${PORT}/`],
delay: 10_000,
timeout: 600_000
})
terminate(startSubprocess.pid ?? 0, 'SIGINT', { timeout: 10000 }, () => {
terminate(startSubprocess.pid ?? 0, 'SIGINT', { timeout: 10_000 }, () => {
terminate(startSubprocess?.pid ?? 0)
})
t.pass(`Success: Leon is running on http://localhost:${PORT}/`)
t.pass(`Success: Leon is running on http://127.0.0.1:${PORT}/`)
} catch (error: any) {
terminate(startSubprocess.pid ?? 0, 'SIGINT', { timeout: 10000 }, () => {
terminate(startSubprocess.pid ?? 0, 'SIGINT', { timeout: 10_000 }, () => {
terminate(startSubprocess?.pid ?? 0)
})
t.fail(error)
Expand Down

0 comments on commit ecc1719

Please sign in to comment.