Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdd92a05

Browse files
committed
test: add retries to router-act
1 parenta0a462d commitdd92a05

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

‎.github/workflows/test-e2e.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,10 @@ jobs:
176176
git apply ../${{ env.runtime-path }}/tests/e2e-utils.patch || git apply ../${{ env.runtime-path }}/tests/e2e-utils-v2.patch || git apply ../${{ env.runtime-path }}/tests/e2e-utils-v3.patch
177177
working-directory:${{ env.next-path }}
178178

179-
-name:try to patch Next.js to add auto-retry to node-fetch used by tests
179+
-name:try to patch Next.js to add auto-retry to node-fetchand router-actused by tests
180180
run:|
181181
git apply ../${{ env.runtime-path }}/tests/e2e-node-fetch-retry.patch ||true
182+
git apply ../${{ env.runtime-path }}/tests/e2e-router-act-fetch-retry.patch ||true
182183
working-directory:${{ env.next-path }}
183184

184185
-name:install Next.js
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/test/lib/router-act.ts b/test/lib/router-act.ts
2+
index cefe17bad3..1e217420c5 100644
3+
--- a/test/lib/router-act.ts
4+
+++ b/test/lib/router-act.ts
5+
@@ -205,6 +205,7 @@ export function createRouterAct(
6+
result: (async () => {
7+
const originalResponse = await page.request.fetch(request, {
8+
maxRedirects: 0,
9+
+ maxRetries: 5,
10+
})
11+
12+
// WORKAROUND:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp