From 5d0f283e9dbf32c5200affb5eb93633cbce62c09 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Sun, 27 Nov 2022 00:00:43 +0530 Subject: [PATCH] Pass suite as pointer for ibctesting --- modules/core/04-channel/keeper/handshake_test.go | 4 ++-- modules/core/04-channel/keeper/packet_test.go | 8 ++++---- modules/core/04-channel/keeper/timeout_test.go | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/core/04-channel/keeper/handshake_test.go b/modules/core/04-channel/keeper/handshake_test.go index 930facda250..23e5c5e0b50 100644 --- a/modules/core/04-channel/keeper/handshake_test.go +++ b/modules/core/04-channel/keeper/handshake_test.go @@ -709,7 +709,7 @@ func (suite *KeeperTestSuite) TestChanCloseInit() { } if hasEvents { - ibctesting.AssertEvents(suite.Suite, expEvents, events) + ibctesting.AssertEvents(&suite.Suite, expEvents, events) } else { suite.Require().Len(events, 0) } @@ -843,7 +843,7 @@ func (suite *KeeperTestSuite) TestChanCloseConfirm() { } if hasEvents { - ibctesting.AssertEvents(suite.Suite, expEvents, events) + ibctesting.AssertEvents(&suite.Suite, expEvents, events) } else { suite.Require().Len(events, 0) } diff --git a/modules/core/04-channel/keeper/packet_test.go b/modules/core/04-channel/keeper/packet_test.go index 1bc1037a484..5c17c6abf21 100644 --- a/modules/core/04-channel/keeper/packet_test.go +++ b/modules/core/04-channel/keeper/packet_test.go @@ -265,7 +265,7 @@ func (suite *KeeperTestSuite) TestSendPacket() { } if hasEvents { - ibctesting.AssertEvents(suite.Suite, expEvents, events) + ibctesting.AssertEvents(&suite.Suite, expEvents, events) } else { suite.Require().Len(events, 0) } @@ -564,7 +564,7 @@ func (suite *KeeperTestSuite) TestRecvPacket() { } if hasEvents { - ibctesting.AssertEvents(suite.Suite, expEvents, events) + ibctesting.AssertEvents(&suite.Suite, expEvents, events) } else { suite.Require().Len(events, 0) } @@ -693,7 +693,7 @@ func (suite *KeeperTestSuite) TestWriteAcknowledgement() { }, } - ibctesting.AssertEvents(suite.Suite, expEvents, events) + ibctesting.AssertEvents(&suite.Suite, expEvents, events) } else { suite.Require().Len(events, 0) } @@ -1015,7 +1015,7 @@ func (suite *KeeperTestSuite) TestAcknowledgePacket() { } if hasEvents { - ibctesting.AssertEvents(suite.Suite, expEvents, events) + ibctesting.AssertEvents(&suite.Suite, expEvents, events) } else { suite.Require().Len(events, 0) } diff --git a/modules/core/04-channel/keeper/timeout_test.go b/modules/core/04-channel/keeper/timeout_test.go index 4424bd5ca98..0ee298639cc 100644 --- a/modules/core/04-channel/keeper/timeout_test.go +++ b/modules/core/04-channel/keeper/timeout_test.go @@ -258,7 +258,7 @@ func (suite *KeeperTestSuite) TestTimeoutPacket() { } if hasEvents { - ibctesting.AssertEvents(suite.Suite, expEvents, events) + ibctesting.AssertEvents(&suite.Suite, expEvents, events) } else { suite.Require().Len(events, 0) } @@ -358,7 +358,7 @@ func (suite *KeeperTestSuite) TestTimeoutExecuted() { } if hasEvents { - ibctesting.AssertEvents(suite.Suite, expEvents, events) + ibctesting.AssertEvents(&suite.Suite, expEvents, events) } else { suite.Require().Len(events, 0) } @@ -581,7 +581,7 @@ func (suite *KeeperTestSuite) TestTimeoutOnClose() { } if hasEvents { - ibctesting.AssertEvents(suite.Suite, expEvents, events) + ibctesting.AssertEvents(&suite.Suite, expEvents, events) } else { suite.Require().Len(events, 0) }