Skip to content

Commit

Permalink
Update flakey GSSP preview test (#43702)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ijjk committed Dec 4, 2022
1 parent 992c46e commit c51af7c
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -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(
Expand Down

0 comments on commit c51af7c

Please sign in to comment.