mirror of https://github.com/status-im/consul.git
test: fail if there is no leader
This commit is contained in:
parent
c0680660d5
commit
f4aa2ada4f
|
@ -605,6 +605,9 @@ func testVerifyRPC(s1, s2 *Server, t *testing.T) (bool, error) {
|
|||
}
|
||||
}
|
||||
s2.localLock.RUnlock()
|
||||
if leader == nil {
|
||||
t.Fatal("no leader")
|
||||
}
|
||||
return s2.connPool.PingConsulServer(leader)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue