Skip to content

Commit

Permalink
Pass suite as pointer for ibctesting
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 committed Nov 26, 2022
1 parent 73095f8 commit 5d0f283
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions modules/core/04-channel/keeper/handshake_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down
8 changes: 4 additions & 4 deletions modules/core/04-channel/keeper/packet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down
6 changes: 3 additions & 3 deletions modules/core/04-channel/keeper/timeout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 5d0f283

Please sign in to comment.