diff --git a/e2e/infra/frontdoor.ts b/e2e/infra/frontdoor.ts index 430e0dc..2d94205 100644 --- a/e2e/infra/frontdoor.ts +++ b/e2e/infra/frontdoor.ts @@ -156,8 +156,8 @@ export async function provisionFrontDoor({ } } -// 6 minutes -const ADDITIONAL_WAIT = 360_000 +// 10 minutes +const ADDITIONAL_WAIT = 600_000 async function waitForFrontDoor(url: string) { console.info('Waiting for front door to be ready...', url) @@ -185,10 +185,12 @@ async function waitForFrontDoor(url: string) { if (text.includes('Page not found')) { throw new Error('Page not found') } - - console.log('Frontdoor is ready!') }) + console.info( + `Frontdoor is ready! Waiting additional ${ADDITIONAL_WAIT / 1000} seconds to make sure it is fully operational...` + ) + // Wait additional ADDITIONAL_WAIT ms, to make sure that frontdoor is fully ready. Otherwise it might cause flaky tests. await wait(ADDITIONAL_WAIT) }