Skip to content

Commit

Permalink
Update response cache test (#51072)
Browse files Browse the repository at this point in the history
x-ref: #51062
  • Loading branch information
ijjk committed Jun 9, 2023
1 parent 2bc1061 commit 90ee958
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/production/standalone-mode/response-cache/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ describe('minimal-mode-response-cache', () => {
})

it('app router revalidate should work with previous response cache', async () => {
const res1 = await fetchViaHTTP(appPort, '/app-blog', undefined, {
const res1 = await fetchViaHTTP(appPort, '/app-blog.rsc', undefined, {
headers: {
'x-matched-path': '/app-blog.rsc',
rsc: '1',
RSC: '1',
},
})
const content1 = await res1.text()
Expand All @@ -95,7 +95,8 @@ describe('minimal-mode-response-cache', () => {

const res2 = await fetchViaHTTP(appPort, '/app-blog', undefined, {
headers: {
'x-matched-path': '/app-blog',
'x-matched-path': '/app-blog.rsc',
RSC: '1',
},
})
const content2 = await res2.text()
Expand Down

0 comments on commit 90ee958

Please sign in to comment.