wjdp / htmltest

:white_check_mark: Test generated HTML for problems
MIT License
323 stars 54 forks source link

Fix flaky test (TestAnchorExternalHrefIPTimeout) #158

Closed wjdp closed 3 years ago

wjdp commented 3 years ago

Sometimes the error message from http.Client is different in Go 1.15 for client timeouts. The messages causing issues contain "dial tcp" which was caught before Client.Timeout.

This fix just moves the handler for "Client.Timeout" above "dial tcp".

Will close #148