rpc: fix tests

This commit is contained in:
Ethan Buchman
2017-11-27 22:35:16 +00:00
parent 9529f12c28
commit 2e76b23c9a
2 changed files with 9 additions and 25 deletions

View File

@ -96,10 +96,8 @@ func TestABCIRecorder(t *testing.T) {
_, err := r.ABCIInfo()
assert.Nil(err, "expected no err on info")
_, err = r.ABCIInfo()
assert.Nil(err, "expected no err on info")
_, err := r.ABCIQueryWithOptions("path", data.Bytes("data"), client.ABCIQueryOptions{Trusted: false})
_, err = r.ABCIQueryWithOptions("path", data.Bytes("data"), client.ABCIQueryOptions{Trusted: false})
assert.NotNil(err, "expected error on query")
require.Equal(2, len(r.Calls))