Преглед на файлове

Merge pull request #5819 from gyuho/tester_fix

etcd-tester: handle error in RevHash
Gyu-Ho Lee преди 10 години
родител
ревизия
5f4d1c8891
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      tools/functional-tester/etcd-tester/member.go

+ 5 - 0
tools/functional-tester/etcd-tester/member.go

@@ -95,6 +95,11 @@ func (m *member) RevHash() (int64, int64, error) {
 	resp, err := mt.Hash(ctx, &pb.HashRequest{})
 	cancel()
 	conn.Close()
+
+	if err != nil {
+		return 0, 0, err
+	}
+
 	return resp.Header.Revision, int64(resp.Hash), nil
 }