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

Example test failing in master branch when port 8080 is already in use (89f4a90) #1153

Open
jmmills opened this issue Feb 8, 2024 · 3 comments

Comments

@jmmills
Copy link

jmmills commented Feb 8, 2024

Describe the bug
At rev 89f4a90 Example test is failing

To Reproduce
run anything that listens on port 8080, then make test

Expected behavior
Passing tests

Additional context

--- FAIL: Example (0.00s)
got:
Executing NewLogger.
Executing NewMux.
Executing NewHandler.
Starting HTTP server.
Stopping HTTP server.
want:
Executing NewLogger.
Executing NewMux.
Executing NewHandler.
Starting HTTP server.
Got a request.
Stopping HTTP server.
FAIL
@abhinav
Copy link
Collaborator

abhinav commented Feb 8, 2024

Test passes for me, and in CI, FWIW.
Where are you running this?

@sywhang
Copy link
Contributor

sywhang commented Feb 8, 2024

Hi Jason! good to see ya around again 👋

Seems like I can't repro this either on any of my machines. Is this reproing consistently for you? or is it flaky

@jmmills
Copy link
Author

jmmills commented Feb 9, 2024

@sywhang @abhinav I discovered the issue, which is that in my environment port 8080 is not available to bind too, which causes the tests to fail. These should likely be moved to using port a random port and fx.Populate a net.Addr type to use with clients.

@jmmills jmmills changed the title Example test failing in master branch (89f4a90) Example test failing in master branch when port 8080 is already in use (89f4a90) Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants