Unverified Commit 319353e8 authored by Alex Kirszenberg's avatar Alex Kirszenberg Committed by GitHub

Increase timeout for 404 tests (#52998)

parent 1717d1e9
......@@ -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',
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment