storj/pkg/transport
Jeff Wendling c6d189a871
pkg/kademlia: fix timeout test slowness (#1937)
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.
2019-05-09 18:01:06 +00:00
..
common.go adds slow kad dialer tests, adds timeout interceptor to transport (#1545) 2019-03-22 13:09:37 -04:00
insecure.go adds slow kad dialer tests, adds timeout interceptor to transport (#1545) 2019-03-22 13:09:37 -04:00
slowtransport.go Add Versioning Server (#1576) 2019-04-03 21:13:39 +02:00
timeout.go Set connection read/write timeout (#1850) 2019-05-09 15:53:04 +02:00
transport_test.go Refactor pb.Node protobuf (#1785) 2019-04-22 12:07:50 +03:00
transport.go pkg/kademlia: fix timeout test slowness (#1937) 2019-05-09 18:01:06 +00:00