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

Test server hosts on different ports #30

Open
raq929 opened this issue Dec 8, 2016 · 3 comments
Open

Test server hosts on different ports #30

raq929 opened this issue Dec 8, 2016 · 3 comments

Comments

@raq929
Copy link
Contributor

raq929 commented Dec 8, 2016

Right now, it logs a different port for each test.
It should always run on 4741.
This may be useful: https://glebbahmutov.com/blog/how-to-correctly-unit-test-express-server/

@gaand
Copy link

gaand commented Dec 9, 2016

Is it a problem that it runs in different ports for testing. Or just not consistent with development?

@raq929
Copy link
Contributor Author

raq929 commented Dec 12, 2016

It's weird and I'm not sure why it's happening. I'd like to at least know why the port number changes on every test. Also, not consistent with development, but...

@gaand
Copy link

gaand commented Dec 13, 2016

It's likely that supertest is randomly selecting a port number.

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

2 participants