c6d189a871
The timeout tests were configured to use very short timeouts but for some reason they took many seconds to complete. This commit fixes two issues: 1. The transports were always using the default timeout rather than the timeout specified. 2. The tests were possibly calling t.FailNow inside of the non-test goroutine which causes it to exit, possibly losing an error from the error group. Additionally, it didn't seem to be testing that the error came back as a deadline wrapped in a transport error. The tests run in ~3s instead of ~60s now. |
||
---|---|---|
.. | ||
common.go | ||
insecure.go | ||
slowtransport.go | ||
timeout.go | ||
transport_test.go | ||
transport.go |