Merge pull request #4467 from gyuho/f00

etcd-tester: fix wrong error checking
This commit is contained in:
Gyu-Ho Lee 2016-02-09 10:20:22 -08:00
commit e9c0d5424a

View File

@ -235,7 +235,7 @@ func (c *cluster) getKVHash() (map[string]int64, error) {
kvc := pb.NewKVClient(conn)
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
resp, err := kvc.Hash(ctx, &pb.HashRequest{})
if resp != nil && err != nil {
if err != nil {
return nil, err
}
cancel()