Skip to content

Commit

Permalink
yolo random ports
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Sep 1, 2023
1 parent 5bad69a commit e1563ea
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 e1563ea

Please sign in to comment.