From 3413584bd269a6e6bc02336b8f15e34472da6962 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Fri, 9 Jun 2023 13:42:13 -0700 Subject: [PATCH] Update response cache test --- .../standalone-mode/response-cache/index.test.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/production/standalone-mode/response-cache/index.test.ts b/test/production/standalone-mode/response-cache/index.test.ts index c3b1206da32af..4abb34ae3fe7b 100644 --- a/test/production/standalone-mode/response-cache/index.test.ts +++ b/test/production/standalone-mode/response-cache/index.test.ts @@ -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() @@ -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()