Skip to content

Commit f5d32d4

Browse files
committed
test: fix expected redirect status
1 parent cbf47e5 commit f5d32d4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/run/next.cts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { AsyncLocalStorage } from 'node:async_hooks'
22
import fs from 'node:fs/promises'
3-
import { relative, resolve, join } from 'node:path'
3+
import { relative, resolve } from 'node:path'
44

55
// @ts-expect-error no types installed
66
import { patchFs } from 'fs-monkey'
@@ -107,7 +107,6 @@ export async function getMockedRequestHandler(
107107
const cacheStore = getMemoizedKeyValueStoreBackedByRegionalBlobStore()
108108
const relPath = relative(resolve(nextConfig.distDir, 'server/pages'), path)
109109
const file = await cacheStore.get<HtmlBlob>(relPath, 'staticHtml.get')
110-
console.log('trying to read path', { path, relPath, file })
111110
if (file !== null) {
112111
if (file.isFullyStaticPage) {
113112
const requestContext = getRequestContext()

tests/integration/edge-handler.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ for (const {
216216

217217
expect(await response.text()).toBe('')
218218

219-
expect(response.status).toBe(307)
219+
expect(response.status).toBe(302)
220220
expect(response.headers.get('location')).toBe('http://example.com/redirected')
221221
expect(response.headers.get('x-runtime')).toEqual(expectedRuntime)
222222
})

0 commit comments

Comments
 (0)