more delivertx changes

This commit is contained in:
William Banfield
2022-02-23 19:00:26 -05:00
parent 9474faf879
commit 855cb51189
2 changed files with 3 additions and 3 deletions

View File

@@ -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")
}

View File

@@ -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())
})