use TendermintResult for rpctypes.Result

This commit is contained in:
Ethan Buchman
2016-01-12 18:04:06 -05:00
parent 0be13d1d27
commit fb59255095
6 changed files with 124 additions and 18 deletions

View File

@ -29,7 +29,7 @@ func TestJSONStatus(t *testing.T) {
}
func testStatus(t *testing.T, result interface{}) {
status := result.(*ctypes.ResultStatus)
status := result.(*ctypes.TendermintResult).Result.(*ctypes.ResultStatus)
if status.NodeInfo.Network != chainID {
t.Fatal(fmt.Errorf("ChainID mismatch: got %s expected %s",
status.NodeInfo.Network, chainID))