@ -48,7 +48,7 @@ func TestABCIMock(t *testing.T) {
// now, let's try to make some calls
// now, let's try to make some calls
_ , err := m . ABCIInfo ( ctx )
_ , err := m . ABCIInfo ( ctx )
require . No Error( t , err )
require . Error ( t , err )
assert . Equal ( t , "foobar" , err . Error ( ) )
assert . Equal ( t , "foobar" , err . Error ( ) )
// query always returns the response
// query always returns the response
@ -62,7 +62,7 @@ func TestABCIMock(t *testing.T) {
// non-commit calls always return errors
// non-commit calls always return errors
_ , err = m . BroadcastTxSync ( ctx , goodTx )
_ , err = m . BroadcastTxSync ( ctx , goodTx )
require . No Error( t , err )
require . Error ( t , err )
assert . Equal ( t , "must commit" , err . Error ( ) )
assert . Equal ( t , "must commit" , err . Error ( ) )
_ , err = m . BroadcastTxAsync ( ctx , goodTx )
_ , err = m . BroadcastTxAsync ( ctx , goodTx )
require . Error ( t , err )
require . Error ( t , err )
@ -70,7 +70,7 @@ func TestABCIMock(t *testing.T) {
// commit depends on the input
// commit depends on the input
_ , err = m . BroadcastTxCommit ( ctx , badTx )
_ , err = m . BroadcastTxCommit ( ctx , badTx )
require . No Error( t , err )
require . Error ( t , err )
assert . Equal ( t , "bad tx" , err . Error ( ) )
assert . Equal ( t , "bad tx" , err . Error ( ) )
bres , err := m . BroadcastTxCommit ( ctx , goodTx )
bres , err := m . BroadcastTxCommit ( ctx , goodTx )
require . NoError ( t , err , "%+v" , err )
require . NoError ( t , err , "%+v" , err )
@ -106,7 +106,7 @@ func TestABCIRecorder(t *testing.T) {
bytes . HexBytes ( "data" ) ,
bytes . HexBytes ( "data" ) ,
client . ABCIQueryOptions { Prove : false } ,
client . ABCIQueryOptions { Prove : false } ,
)
)
assert . No Error( t , err , "expected error on query" )
assert . Error ( t , err , "expected error on query" )
require . Equal ( t , 2 , len ( r . Calls ) )
require . Equal ( t , 2 , len ( r . Calls ) )
info := r . Calls [ 0 ]
info := r . Calls [ 0 ]