|
|
@ -66,17 +66,17 @@ func TestNetInfo(t *testing.T) { |
|
|
|
|
|
|
|
// FIXME: This seems to trigger a race condition with client.Local
|
|
|
|
// go test -v -race . -run=DumpCons
|
|
|
|
// func TestDumpConsensusState(t *testing.T) {
|
|
|
|
// for i, c := range GetClients() {
|
|
|
|
// // FIXME: fix server so it doesn't panic on invalid input
|
|
|
|
// nc, ok := c.(client.NetworkClient)
|
|
|
|
// require.True(t, ok, "%d", i)
|
|
|
|
// cons, err := nc.DumpConsensusState()
|
|
|
|
// require.Nil(t, err, "%d: %+v", i, err)
|
|
|
|
// assert.NotEmpty(t, cons.RoundState)
|
|
|
|
// assert.Empty(t, cons.PeerRoundStates)
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
func TestDumpConsensusState(t *testing.T) { |
|
|
|
for i, c := range GetClients() { |
|
|
|
// FIXME: fix server so it doesn't panic on invalid input
|
|
|
|
nc, ok := c.(client.NetworkClient) |
|
|
|
require.True(t, ok, "%d", i) |
|
|
|
cons, err := nc.DumpConsensusState() |
|
|
|
require.Nil(t, err, "%d: %+v", i, err) |
|
|
|
assert.NotEmpty(t, cons.RoundState) |
|
|
|
assert.Empty(t, cons.PeerRoundStates) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
func TestGenesisAndValidators(t *testing.T) { |
|
|
|
for i, c := range GetClients() { |
|
|
|