From b36bf68d7da20ecc5d7bf1dd886611aaeaafb5f9 Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Tue, 5 May 2020 20:42:44 +0900 Subject: [PATCH] 240 attempts should not just be 239 :D --- packages/cli/e2e-test/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/e2e-test/helpers.js b/packages/cli/e2e-test/helpers.js index 30e4770c01..ed3b7914cc 100644 --- a/packages/cli/e2e-test/helpers.js +++ b/packages/cli/e2e-test/helpers.js @@ -106,7 +106,7 @@ async function waitForPageWithText( } catch (error) { if (error.message.match(EXPECTED_LOAD_ERRORS)) { loadAttempts++; - if (loadAttempts > maxLoadAttempts) { + if (loadAttempts >= maxLoadAttempts) { throw new Error( `Failed to load page '${path}', max number of attempts reached`, );