Skip to content

Commit

Permalink
Increase timeout for 404 tests (#52998)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkirsz committed Jul 21, 2023
1 parent 1717d1e commit 319353e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default function Test() {
function runTests(harness: Harness, iframe: HTMLIFrameElement) {
// These tests requires a longer timeout because we're rendering the 404 page as well.
const TIMEOUT = 20000
const LONG_TIMEOUT = 60000

it(
'returns a 404 status code for the custom 404 page',
Expand Down Expand Up @@ -60,13 +61,14 @@ function runTests(harness: Harness, iframe: HTMLIFrameElement) {
TIMEOUT
)

// TODO: This test is flaky, so it needs a particularly long timeout.
it(
'returns a 404 status code for a segment 404 page',
async () => {
const res = await fetch('/segment')
expect(res.status).toBe(404)
},
TIMEOUT
LONG_TIMEOUT
)

// TODO(WEB-980) Fix this test once we no longer throw an error when rendering a 404 page.
Expand Down

0 comments on commit 319353e

Please sign in to comment.