add Health method to clients

Refs #1296
This commit is contained in:
Anton Kaliaev
2018-03-19 19:53:50 +03:00
parent b11c26cc1c
commit 830bb72d6f
4 changed files with 23 additions and 0 deletions

View File

@ -78,6 +78,15 @@ func TestDumpConsensusState(t *testing.T) {
}
}
func TestHealth(t *testing.T) {
for i, c := range GetClients() {
nc, ok := c.(client.NetworkClient)
require.True(t, ok, "%d", i)
_, err := nc.Health()
require.Nil(t, err, "%d: %+v", i, err)
}
}
func TestGenesisAndValidators(t *testing.T) {
for i, c := range GetClients() {