Skip to content

Commit

Permalink
yolo random ports
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Aug 30, 2023
1 parent cd2c9fa commit 6ef0323
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6ef0323

Please sign in to comment.