Merge pull request #6886 from fanminshi/fix_dial_grpc
functional-tester: add withBlock() to grpc dial
This commit is contained in:
@ -154,7 +154,7 @@ func (m *member) newClientV3() (*clientv3.Client, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (m *member) dialGRPC() (*grpc.ClientConn, 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()
|
// grpcAddr gets the host from clientURL so it works with grpc.Dial()
|
||||||
|
Reference in New Issue
Block a user