Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
net: TestSpecialDomainName can hang indefinitely #13939
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: