add the missing transport_test.go

This commit is contained in:
iamqizhao
2015-04-21 16:37:22 -07:00
parent 2cf2d0871b
commit e8768ecbf0

View File

@ -217,12 +217,11 @@ func setUp(t *testing.T, useTLS bool, port int, maxStreams uint32, ht hType) (*s
t.Fatalf("Failed to create credentials %v", err)
}
dopts := ConnectOptions{
Network: "tcp",
AuthOptions: []credentials.Credentials{creds},
}
ct, connErr = NewClientTransport(addr, &dopts)
} else {
ct, connErr = NewClientTransport(addr, &ConnectOptions{Network: "tcp"})
ct, connErr = NewClientTransport(addr, &ConnectOptions{})
}
if connErr != nil {
t.Fatalf("failed to create transport: %v", connErr)