Name timeout rather than deadline

This commit is contained in:
Asim
2016-08-01 16:31:27 +01:00
parent 56aaeff042
commit 66c38b75aa
3 changed files with 19 additions and 19 deletions

View File

@@ -178,8 +178,8 @@ func TestHTTPTransportError(t *testing.T) {
close(done)
}
func TestHTTPTransportDeadline(t *testing.T) {
tr := NewTransport(Deadline(time.Millisecond * 100))
func TestHTTPTransportTimeout(t *testing.T) {
tr := NewTransport(Timeout(time.Millisecond * 100))
l, err := tr.Listen(":0")
if err != nil {