Skip to content

Commit

Permalink
Increase wait on flaky ssr test
Browse files Browse the repository at this point in the history
  • Loading branch information
tyhopp committed Jan 17, 2022
1 parent 7faefcc commit ed0fc7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion integration-tests/ssr/__tests__/ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe(`SSR`, () => {
expect(String(childProcess.stdout)).toContain(
`testing these paths for differences between dev & prod outputs`
)
}, 30000)
}, 60000)

test(`it generates an error page correctly`, async () => {
const src = path.join(__dirname, `/fixtures/bad-page.js`)
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/ssr/test-output.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ async function run() {
// Fetch once to trigger re-compilation.
await fetch(`${devSiteBasePath}/${path}`)

// Then wait for a second to ensure it's ready to go.
// Then wait for 6 seconds to ensure it's ready to go.
// Otherwise, tests are flaky depending on the speed of the testing machine.
await new Promise(resolve => {
setTimeout(() => resolve(), 1000)
setTimeout(() => resolve(), 6000) // Revert to original time to see if it makes a difference
})

let devStatus = 200
Expand Down

0 comments on commit ed0fc7d

Please sign in to comment.