Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
319353e8
Unverified
Commit
319353e8
authored
Jul 21, 2023
by
Alex Kirszenberg
Committed by
GitHub
Jul 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase timeout for 404 tests (#52998)
parent
1717d1e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
test.tsx
.../tests/integration/next/app/404-custom/input/app/test.tsx
+3
-1
No files found.
packages/next-swc/crates/next-dev-tests/tests/integration/next/app/404-custom/input/app/test.tsx
View file @
319353e8
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment