add the missing transport_test.go
This commit is contained in:
@ -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)
|
t.Fatalf("Failed to create credentials %v", err)
|
||||||
}
|
}
|
||||||
dopts := ConnectOptions{
|
dopts := ConnectOptions{
|
||||||
Network: "tcp",
|
|
||||||
AuthOptions: []credentials.Credentials{creds},
|
AuthOptions: []credentials.Credentials{creds},
|
||||||
}
|
}
|
||||||
ct, connErr = NewClientTransport(addr, &dopts)
|
ct, connErr = NewClientTransport(addr, &dopts)
|
||||||
} else {
|
} else {
|
||||||
ct, connErr = NewClientTransport(addr, &ConnectOptions{Network: "tcp"})
|
ct, connErr = NewClientTransport(addr, &ConnectOptions{})
|
||||||
}
|
}
|
||||||
if connErr != nil {
|
if connErr != nil {
|
||||||
t.Fatalf("failed to create transport: %v", connErr)
|
t.Fatalf("failed to create transport: %v", connErr)
|
||||||
|
Reference in New Issue
Block a user