net: TestSpecialDomainName can hang indefinitely #13939
Closed
Labels
Comments
You want to send a change, or do you want us to? |
I'm happy to send a change. |
CL https://golang.org/cl/18661 mentions this issue. |
Ref #13295 Might be nice to not involve the network for these at some point. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The DNS test TestSpecialDomainName can hang indefinitely because it sends a DNS request using UDP and waits for a response without specifying a timeout.
The easiest fix would be to add a timeout to the call to exchange so that the test fails quickly with a nice error message if the request gets lost or is ignored. For example:
The text was updated successfully, but these errors were encountered: