mirror of
https://github.com/tendermint/tendermint.git
synced 2026-04-05 08:19:07 +00:00
more delivertx changes
This commit is contained in:
@@ -49,7 +49,7 @@ func TestHTTPSimple(t *testing.T) {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
if bres.CheckTx.IsErr() || bres.DeliverTx.IsErr() {
|
||||
if bres.CheckTx.IsErr() || bres.TxResult.IsErr() {
|
||||
log.Fatal("BroadcastTxCommit transaction failed")
|
||||
}
|
||||
|
||||
|
||||
@@ -324,7 +324,7 @@ func TestClientMethodCalls(t *testing.T) {
|
||||
k, v, tx := MakeTxKV()
|
||||
bres, err := c.BroadcastTxCommit(ctx, tx)
|
||||
require.NoError(t, err)
|
||||
require.True(t, bres.DeliverTx.IsOK())
|
||||
require.True(t, bres.TxResult.IsOK())
|
||||
txh := bres.Height
|
||||
apph := txh + 1 // this is where the tx will be applied to the state
|
||||
|
||||
@@ -443,7 +443,7 @@ func TestClientMethodCalls(t *testing.T) {
|
||||
bres, err := c.BroadcastTxCommit(ctx, tx)
|
||||
require.NoError(t, err, "%d: %+v", i, err)
|
||||
require.True(t, bres.CheckTx.IsOK())
|
||||
require.True(t, bres.DeliverTx.IsOK())
|
||||
require.True(t, bres.TxResult.IsOK())
|
||||
|
||||
require.Equal(t, 0, pool.Size())
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user