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.
diff --git a/interop/client/client.go b/interop/client/client.go
index 60bf7f3..da6bc2d 100644
--- a/interop/client/client.go
+++ b/interop/client/client.go
@@ -107,6 +107,7 @@
} 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)