Skip to content

Commit

Permalink
test(e2e): use port assigner
Browse files Browse the repository at this point in the history
  • Loading branch information
knagaitsev committed Jun 11, 2019
1 parent b70f151 commit e0f3d40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/e2e/Progress.test.js
Expand Up @@ -8,6 +8,7 @@ const { resolve } = require('path');
const testServer = require('../helpers/test-server');
const reloadConfig = require('../fixtures/reload-config/webpack.config');
const runBrowser = require('../helpers/run-browser');
const port = require('../ports-map').Progress;

const cssFilePath = resolve(__dirname, '../fixtures/reload-config/main.css');

Expand All @@ -19,7 +20,7 @@ describe('client progress', () => {
'body { background-color: rgb(0, 0, 255); }'
);
const options = {
port: 9000,
port,
host: '0.0.0.0',
inline: true,
hot: true,
Expand Down Expand Up @@ -56,7 +57,7 @@ describe('client progress', () => {
});
});

page.goto('http://localhost:9000/main');
page.goto(`http://localhost:${port}/main`);
page.on('console', ({ _text }) => {
res.push(_text);
});
Expand Down
1 change: 1 addition & 0 deletions test/ports-map.js
Expand Up @@ -35,6 +35,7 @@ const portsList = {
'sockPath-option': 1,
'stats-option': 1,
ProvidePlugin: 1,
Progress: 1,
};

let startPort = 8079;
Expand Down

0 comments on commit e0f3d40

Please sign in to comment.