Skip to content

Commit

Permalink
test: wait 10 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnderScorer committed Jun 18, 2024
1 parent 5e0d535 commit 62923e6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions e2e/infra/frontdoor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
}

0 comments on commit 62923e6

Please sign in to comment.