Skip to content

Commit

Permalink
fix middleware-general deploy test (#67712)
Browse files Browse the repository at this point in the history
The copy on this error changed in #67565 but it caused an error when
deployed since the message text was different
([ref](https://github.com/vercel/next.js/actions/runs/9899883735/job/27350409711#step:27:764))
  • Loading branch information
ztanner authored Jul 12, 2024
1 parent 38a6b01 commit 4122f42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/middleware-general/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,8 @@ describe('Middleware Runtime', () => {
const payload = readMiddlewareJSON(response)
expect('error' in payload).toBe(true)
expect(payload.error.name).toBe('AbortError')
expect(payload.error.message).toContain('This operation was aborted')
// AbortError messages differ depending on the runtime
expect(payload.error.message).toMatch(/(This|The) operation was aborted/)
})

it(`should validate & parse request url from any route`, async () => {
Expand Down

0 comments on commit 4122f42

Please sign in to comment.