New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'ng e2e --port 0' does not work on Windows #13129

Open
rgansevles opened this Issue Dec 4, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@rgansevles

rgansevles commented Dec 4, 2018

Bug Report or Feature Request (mark with an x)

- [ x] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)

- [x ] new
- [ ] build
- [ ] serve
- [ ] test
- [ x] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

Node: v8.9.3
Npm: 5.5.1

Angular CLI: 7.1.1
Node: 8.9.3
OS: win32 x64
Angular: 7.1.1
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package Version

@angular-devkit/architect 0.11.1
@angular-devkit/build-angular 0.11.1
@angular-devkit/build-optimizer 0.11.1
@angular-devkit/build-webpack 0.11.1
@angular-devkit/core 7.1.1
@angular-devkit/schematics 7.1.1
@ngtools/webpack 7.1.1
@schematics/angular 7.1.1
@schematics/update 0.11.1
rxjs 6.3.3
typescript 3.1.6
webpack 4.23.1

Repro steps

ng new test
cd test
npm install
ng e2e --port 0

The log given by the failure

$ ng e2e --port 0
** Angular Live Development Server is listening on localhost:49152, open your browser on http://localhost:49152/ **

Date: 2018-12-04T09:22:02.395Z
Hash: 08d84e7201a27eb17ee3
Time: 6572ms
chunk {main} main.js, main.js.map (main) 9.83 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 223 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.08 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 16.3 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 3.43 MB [initial] [rendered]
i 「wdm」: Compiled successfully.
[10:22:23] E/downloader - Connection timeout downloading: https://chromedriver.storage.googleapis.com/2.44/chromedriver_win32.zip. Default timeout is 4 minutes.
[10:22:23] I/update - chromedriver: file exists C:\Users\rob.gansevles\tmp\github\test\node_modules\webdriver-manager\selenium\chromedriver_2.44.zip
[10:22:23] I/update - chromedriver: unzipping chromedriver_2.44.zip
[10:22:24] I/update - chromedriver: chromedriver_2.44.exe up to date
[10:22:24] E/downloader - Connection timeout downloading: https://chromedriver.storage.googleapis.com/2.44/chromedriver_win32.zip. Default timeout is 4 minutes.
[10:22:24] I/launcher - Running 1 instances of WebDriver
[10:22:24] I/direct - Using ChromeDriver directly...

DevTools listening on ws://127.0.0.1:58569/devtools/browser/38bcd15b-29b9-42a0-b923-6c8de17f5298
Jasmine started
[20636:15708:1204/102227.264:ERROR:tcp_socket_win.cc(861)] connect failed: 10049
[20636:15708:1204/102227.264:ERROR:tcp_socket_win.cc(861)] connect failed: 10049
[20636:15708:1204/102227.265:ERROR:tcp_socket_win.cc(861)] connect failed: 10049
[20636:15708:1204/102227.266:ERROR:tcp_socket_win.cc(861)] connect failed: 10049
[10:22:37] E/protractor - Could not find Angular on page http://localhost:0/ : retries looking for angular exceeded

Desired functionality

We need e2e tests to run on a random port to prevent port clashes with multiple tests running on the same host.

Mention any other details that might be useful

This fails on Window, on Linux (Ubuntu) it works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment