Skip to content

Commit 502048b

Browse files
committed
test: increase timeout and add wait for gateway server readiness in hooks tests
1 parent 249460f commit 502048b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/e2e/hooks.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,9 @@ describe('Hooks E2E Tests', () => {
712712
asyncGateway.addRoute(asyncRouteConfig)
713713
const asyncServer = await asyncGateway.listen(asyncGatewayPort)
714714

715+
// Wait for the gateway server to be ready
716+
await new Promise((resolve) => setTimeout(resolve, 1000))
717+
715718
// Wait for the gateway server to be ready with proper health check
716719
let gatewayReady = false
717720
for (let i = 0; i < 20; i++) {
@@ -757,5 +760,5 @@ describe('Hooks E2E Tests', () => {
757760
asyncServer.stop()
758761
asyncFailingServer.stop()
759762
}
760-
}, 20000)
763+
}, 30000)
761764
})

0 commit comments

Comments
 (0)