소스 검색

Merge pull request #6886 from fanminshi/fix_dial_grpc

functional-tester: add withBlock() to grpc dial
fanmin shi 9 년 전
부모
커밋
ec5f9bce63
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()