test: fail if there is no leader

pull/3037/head
Frank Schroeder 8 years ago
parent c0680660d5
commit f4aa2ada4f
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD

@ -605,6 +605,9 @@ func testVerifyRPC(s1, s2 *Server, t *testing.T) (bool, error) {
} }
} }
s2.localLock.RUnlock() s2.localLock.RUnlock()
if leader == nil {
t.Fatal("no leader")
}
return s2.connPool.PingConsulServer(leader) return s2.connPool.PingConsulServer(leader)
} }

Loading…
Cancel
Save