File tree Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -116,9 +116,7 @@ func (s *MiddlewareTestSuite) TestNewIBCMiddleware() {
116
116
117
117
// TestOnRecvPacket checks the OnRecvPacket logic for ICS-20.
118
118
func (s * MiddlewareTestSuite ) TestOnRecvPacket () {
119
- var (
120
- packet channeltypes.Packet
121
- )
119
+ var packet channeltypes.Packet
122
120
123
121
testCases := []struct {
124
122
name string
@@ -350,7 +348,6 @@ func (s *MiddlewareTestSuite) TestOnAcknowledgementPacket() {
350
348
}
351
349
352
350
for _ , tc := range testCases {
353
- tc := tc
354
351
s .Run (tc .name , func () {
355
352
s .SetupTest ()
356
353
@@ -587,9 +584,7 @@ func (s *MiddlewareTestSuite) TestOnAcknowledgementPacketNativeErc20() {
587
584
588
585
// TestOnTimeoutPacket checks the timeout handling for ICS-20.
589
586
func (s * MiddlewareTestSuite ) TestOnTimeoutPacket () {
590
- var (
591
- packet channeltypes.Packet
592
- )
587
+ var packet channeltypes.Packet
593
588
594
589
testCases := []struct {
595
590
name string
@@ -698,9 +693,7 @@ func (s *MiddlewareTestSuite) TestOnTimeoutPacket() {
698
693
699
694
// TestOnTimeoutPacketNativeErc20 tests the OnTimeoutPacket method for native ERC20 tokens.
700
695
func (s * MiddlewareTestSuite ) TestOnTimeoutPacketNativeErc20 () {
701
- var (
702
- packet channeltypes.Packet
703
- )
696
+ var packet channeltypes.Packet
704
697
705
698
testCases := []struct {
706
699
name string
Original file line number Diff line number Diff line change @@ -90,7 +90,6 @@ func (s *MiddlewareV2TestSuite) TestNewIBCMiddleware() {
90
90
}
91
91
92
92
for _ , tc := range testCases {
93
- tc := tc
94
93
s .Run (tc .name , func () {
95
94
if tc .expError == nil {
96
95
s .Require ().NotPanics (
@@ -135,7 +134,6 @@ func (s *MiddlewareV2TestSuite) TestOnSendPacket() {
135
134
}
136
135
137
136
for _ , tc := range testCases {
138
- tc := tc
139
137
s .Run (tc .name , func () {
140
138
s .SetupTest ()
141
139
ctx = s .evmChainA .GetContext ()
@@ -218,7 +216,6 @@ func (s *MiddlewareV2TestSuite) TestOnRecvPacket() {
218
216
}
219
217
220
218
for _ , tc := range testCases {
221
- tc := tc
222
219
s .Run (tc .name , func () {
223
220
s .SetupTest ()
224
221
ctx = s .chainB .GetContext ()
@@ -336,7 +333,6 @@ func (s *MiddlewareV2TestSuite) TestOnAcknowledgementPacket() {
336
333
}
337
334
338
335
for _ , tc := range testCases {
339
- tc := tc
340
336
s .Run (tc .name , func () {
341
337
s .SetupTest ()
342
338
ctx = s .evmChainA .GetContext ()
@@ -428,7 +424,6 @@ func (s *MiddlewareV2TestSuite) TestOnTimeoutPacket() {
428
424
}
429
425
430
426
for _ , tc := range testCases {
431
- tc := tc
432
427
s .Run (tc .name , func () {
433
428
s .SetupTest ()
434
429
ctx = s .evmChainA .GetContext ()
You can’t perform that action at this time.
0 commit comments