From 9e9c52aa0f9f8d645ee8672a40d5fc5bbddc8e00 Mon Sep 17 00:00:00 2001 From: Gjermund Garaba Date: Wed, 19 Jun 2024 18:47:29 +0200 Subject: [PATCH] Fix test after #6586 --- modules/apps/transfer/keeper/relay_forwarding_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/apps/transfer/keeper/relay_forwarding_test.go b/modules/apps/transfer/keeper/relay_forwarding_test.go index f391b07d7bb..5d460341027 100644 --- a/modules/apps/transfer/keeper/relay_forwarding_test.go +++ b/modules/apps/transfer/keeper/relay_forwarding_test.go @@ -501,8 +501,7 @@ func (suite *KeeperTestSuite) TestAcknowledgementFailureScenario1Forwarding() { err = path1.EndpointB.AcknowledgePacket(packetFromBtoA, errorAckOnA.Acknowledgement()) suite.Require().NoError(err) - // TODO: Change to new error after #6586 is finished - errorAckOnB := channeltypes.NewErrorAcknowledgement(errors.New("forwarded packet failed")) + errorAckOnB := channeltypes.NewErrorAcknowledgement(types.ErrForwardedPacketFailed) errorAckCommitmentOnB := channeltypes.CommitAcknowledgement(errorAckOnB.Acknowledgement()) ackOnB := suite.chainB.GetAcknowledgement(packetFromCtoB) suite.Require().Equal(errorAckCommitmentOnB, ackOnB)