Skip to content
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

Trying to run ember test --serve and ember test simultaneously results in "EADDRINUSE" error #4791

Closed
nickiaconis opened this issue Sep 2, 2015 · 5 comments

Comments

@nickiaconis
Copy link
Contributor

Running either (or both) with --port #### (even if it is the same number for both) results in success, but prints a warning:

The option '--port' is not registered with the test command. Run ember test --help for a list of supported options.

@stefanpenner
Copy link
Contributor

can you share versions of:

  • ember
  • npm
  • node
  • os

@nickiaconis
Copy link
Contributor Author

Of course.

  • ember(-cli): 1.13.8
  • node: 0.12.6
  • npm: 2.13.4
  • os: darwin x64 (OSX Yosemite)

(By the way, I think it's awesome that ember -v gives all of these in one shot.) 👍

@patocallaghan
Copy link
Contributor

@nickiaconis We no longer use --port to set the port number when running ember test --server. It was changed to --test-port.

ember test --server --test-port=12345 will work fine

Change was in #3239

@nickiaconis
Copy link
Contributor Author

@patocallaghan Thanks for that tip. I'm still confused why ember test needs to bind a port in the first place, since it's only running in phantom.

I'm also confused as to why running ember test --port 1234 and ember test --serve --port 1234 simultaneously works, but running ember test and ember test --serve simultaneously does not.

@patocallaghan
Copy link
Contributor

@nickiaconis ember test uses testem under the hood and that would still need to use a port. If you add Chrome to your list of tested browsers you'll see it opens up with http://localhost:7357.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants