diff --git a/tests/mbt/driver/mbt_test.go b/tests/mbt/driver/mbt_test.go index 247e114236..c9f534809b 100644 --- a/tests/mbt/driver/mbt_test.go +++ b/tests/mbt/driver/mbt_test.go @@ -590,7 +590,7 @@ func UpdateProviderClientOnConsumer(t *testing.T, driver *Driver, consumerChainI t.Helper() driver.path(ChainId(consumerChainId)).AddClientHeader(PROVIDER, driver.providerHeader()) err := driver.path(ChainId(consumerChainId)).UpdateClient(consumerChainId, false) - require.True(t, err == nil, "Error updating client from %v on provider: %v", consumerChainId, err) + require.True(t, err == nil, "Error updating client from %v on consumer: %v", consumerChainId, err) } func UpdateConsumerClientOnProvider(t *testing.T, driver *Driver, consumerChain string) { diff --git a/testutil/simibc/relay_util.go b/testutil/simibc/relay_util.go index 47cd6aabd7..c8d85b9e1d 100644 --- a/testutil/simibc/relay_util.go +++ b/testutil/simibc/relay_util.go @@ -38,7 +38,7 @@ func UpdateReceiverClient(sender, receiver *ibctesting.Endpoint, header *ibctmty return err } - _, err = simapp.SignAndDeliver( + res, err := simapp.SignAndDeliver( receiver.Chain.TB, receiver.Chain.TxConfig, receiver.Chain.App.GetBaseApp(), @@ -52,6 +52,12 @@ func UpdateReceiverClient(sender, receiver *ibctesting.Endpoint, header *ibctmty receiver.Chain.SenderPrivKey, ) + for _, txRes := range res.TxResults { + if txRes.Code != 0 { + return fmt.Errorf("tx failed with code %d, tx result: %s", txRes.Code, txRes) + } + } + setSequenceErr := receiver.Chain.SenderAccount.SetSequence(receiver.Chain.SenderAccount.GetSequence() + 1) if err != nil { return err