Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update flakey middleware rewrite test #41007

Merged
merged 4 commits into from Sep 28, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions test/e2e/middleware-rewrites/test/index.test.ts
Expand Up @@ -493,8 +493,9 @@ describe('Middleware Rewrite', () => {
})

// wait for initial query update request
await check(() => {
if (requests.length > 0) {
await check(async () => {
const didReq = await browser.eval('next.router.isReady')
if (requests.length > 0 || didReq) {
requests = []
return 'yup'
}
Expand Down