From c51af7cab52f39ae40e79a89e79311a9cb3d9b9e Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Sun, 4 Dec 2022 13:16:22 -0800 Subject: [PATCH] Update flakey GSSP preview test (#43702) Ensures we grab a new port when launching fresh server as the existing port may still be held up. x-ref: https://github.com/vercel/next.js/actions/runs/3611678257/jobs/6086329090 --- test/integration/getserversideprops-preview/test/index.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/integration/getserversideprops-preview/test/index.test.js b/test/integration/getserversideprops-preview/test/index.test.js index 7c7f68bbdf06..ff42f77db3a4 100644 --- a/test/integration/getserversideprops-preview/test/index.test.js +++ b/test/integration/getserversideprops-preview/test/index.test.js @@ -197,6 +197,7 @@ describe('ServerSide Props Preview Mode', () => { it('should return cookies to be expired after dev server reboot', async () => { await killApp(app) + appPort = await findPort() app = await launchApp(appDir, appPort) const res = await fetchViaHTTP(