Skip to content

reuseport: use DialContext instead of Dial in test to fail quickly #2541

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

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

sukunrt
Copy link
Member

@sukunrt sukunrt commented Aug 30, 2023

using transport.Dial will never timeout. I think this is useful for tests.

@sukunrt sukunrt requested a review from marten-seemann August 30, 2023 07:33
@marten-seemann
Copy link
Contributor

This is not the transport integration test, this is the reuseport test.

@sukunrt sukunrt force-pushed the sukun/transport-test-context branch from 56cfdda to e06f3aa Compare August 30, 2023 07:52
@sukunrt sukunrt changed the title transport integration tests: use DialContext instead of Dial to fail quickly reuseport: use DialContext instead of Dial in test to fail quickly Aug 30, 2023
@sukunrt
Copy link
Member Author

sukunrt commented Aug 30, 2023

mybad, fixed it.

@marten-seemann marten-seemann merged commit fa4f7f5 into master Aug 30, 2023
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

Successfully merging this pull request may close these issues.

2 participants