浏览代码

functional-tester: add withBlock() to grpc dial

grpc dail withTimeout() only works if withBlock() option is present.
fanmin shi 9 年之前
父节点
当前提交
2ccba33dd1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/functional-tester/etcd-tester/member.go

+ 1 - 1
tools/functional-tester/etcd-tester/member.go

@@ -154,7 +154,7 @@ func (m *member) newClientV3() (*clientv3.Client, error) {
 }
 
 func (m *member) dialGRPC() (*grpc.ClientConn, error) {
-	return grpc.Dial(m.grpcAddr(), grpc.WithInsecure(), grpc.WithTimeout(5*time.Second))
+	return grpc.Dial(m.grpcAddr(), grpc.WithInsecure(), grpc.WithTimeout(5*time.Second), grpc.WithBlock())
 }
 
 // grpcAddr gets the host from clientURL so it works with grpc.Dial()