From 125b6fc4a4558989265ebdec1ade32d1d8b3ffc9 Mon Sep 17 00:00:00 2001 From: Ty Hopp Date: Mon, 17 Jan 2022 15:04:28 +0800 Subject: [PATCH] Increase wait on flaky ssr test --- integration-tests/ssr/__tests__/ssr.js | 2 +- integration-tests/ssr/test-output.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/integration-tests/ssr/__tests__/ssr.js b/integration-tests/ssr/__tests__/ssr.js index 5e9e33b77bbea..5f2d96abf613d 100644 --- a/integration-tests/ssr/__tests__/ssr.js +++ b/integration-tests/ssr/__tests__/ssr.js @@ -33,7 +33,7 @@ describe(`SSR`, () => { expect(String(childProcess.stdout)).toContain( `testing these paths for differences between dev & prod outputs` ) - }, 30000) + }, 60000) test(`it generates an error page correctly`, async () => { const src = path.join(__dirname, `/fixtures/bad-page.js`) diff --git a/integration-tests/ssr/test-output.js b/integration-tests/ssr/test-output.js index c3a205bebb92f..4a0a41831e1fa 100644 --- a/integration-tests/ssr/test-output.js +++ b/integration-tests/ssr/test-output.js @@ -47,10 +47,10 @@ async function run() { // Fetch once to trigger re-compilation. await fetch(`${devSiteBasePath}/${path}`) - // Then wait for a second to ensure it's ready to go. + // Then wait to ensure it's ready to go. // Otherwise, tests are flaky depending on the speed of the testing machine. await new Promise(resolve => { - setTimeout(() => resolve(), 1000) + setTimeout(() => resolve(), 3000) }) let devStatus = 200