Make interop client dial blocking (#1559)

This should not be necessary once the new balancer API is done.

Currently interop clients don't use balancer. With a non-blocking dial, the first failfast RPC will fail because there's no connection available.
This is a known bug, and will be fixed by the new balancer APIs.

This is a temp fix to make interop tests pass.
This commit is contained in:
Menghan Li
2017-10-03 16:57:48 -07:00
committed by GitHub
parent 8230f98ef7
commit 4b49faaf06

View File

@ -107,6 +107,7 @@ func main() {
} else {
opts = append(opts, grpc.WithInsecure())
}
opts = append(opts, grpc.WithBlock())
conn, err := grpc.Dial(serverAddr, opts...)
if err != nil {
grpclog.Fatalf("Fail to dial: %v", err)