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: use dynamic port for web proxy tests #523

Merged
merged 1 commit into from
Sep 27, 2018
Merged

Conversation

sangaman
Copy link
Collaborator

This changes the web proxy tests to use a dynamic, unused port instead of the default 8080 port, which could cause the tests to fail if 8080 is being used.

@@ -11,7 +12,7 @@ describe('WebProxy', () => {
config = {
webproxy: {
disable: false,
port: 8080,
port: await getUnusedPort(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather have this value be assigned to a var in the beginning of the file/test, in case more usages will pop out.

@sangaman sangaman force-pushed the proxy-test-port branch 2 times, most recently from 501442c to 3f98141 Compare September 25, 2018 19:49
This changes the web proxy tests to use a dynamic, unused port instead
of the default 8080 port, which could cause the tests to fail if 8080
is being used.
@sangaman sangaman merged commit 8d0309e into master Sep 27, 2018
@ghost ghost removed the in progress label Sep 27, 2018
sangaman added a commit that referenced this pull request Sep 27, 2018
test: use dynamic port for web proxy tests
@michael1011 michael1011 deleted the proxy-test-port branch September 27, 2018 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants