From e1563eaad2ae927063479803f8d190e014702107 Mon Sep 17 00:00:00 2001 From: legobt <6wbvkn0j@anonaddy.me> Date: Wed, 30 Aug 2023 02:12:53 +0000 Subject: [PATCH] yolo random ports --- test/e2e/helpers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/helpers.js b/test/e2e/helpers.js index eb9c0efb4b4b..a8098ef69b1e 100644 --- a/test/e2e/helpers.js +++ b/test/e2e/helpers.js @@ -50,6 +50,7 @@ async function withFixtures(options, testSuite) { let numberOfDapps = dapp ? 1 : 0; const dappServer = []; const phishingPageServer = new PhishingWarningPageServer(); + const phishingPagePort = 10000 + Math.floor(Math.random() * 10000); let webDriver; let driver; @@ -77,7 +78,7 @@ async function withFixtures(options, testSuite) { } await fixtureServer.start(); fixtureServer.loadJsonState(fixtures, contractRegistry); - await phishingPageServer.start(); + await phishingPageServer.start(phishingPagePort); if (dapp) { if (dappOptions?.numberOfDapps) { numberOfDapps = dappOptions.numberOfDapps;