Skip to content

Commit

Permalink
Merge pull request #6886 from fanminshi/fix_dial_grpc
Browse files Browse the repository at this point in the history
functional-tester: add withBlock() to grpc dial
  • Loading branch information
fanminshi authored Nov 21, 2016
2 parents f7c721b + 2ccba33 commit ec5f9bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/functional-tester/etcd-tester/member.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ec5f9bc

Please sign in to comment.