Skip to content

Commit

Permalink
Merge pull request #1671 from CosmWasm/mergify/bp/main/pr-1670
Browse files Browse the repository at this point in the history
Fix test code (backport #1670)
  • Loading branch information
alpe authored Oct 16, 2023
2 parents cd78376 + bb2beb8 commit 606289a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x/wasm/ibctesting/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,22 +255,22 @@ func (coord *Coordinator) RelayAndAckPendingPackets(path *Path) error {
src := path.EndpointA
require.NoError(coord.t, src.UpdateClient())
coord.t.Logf("Relay: %d Packets A->B, %d Packets B->A\n", len(src.Chain.PendingSendPackets), len(path.EndpointB.Chain.PendingSendPackets))
for i, v := range src.Chain.PendingSendPackets {
for _, v := range src.Chain.PendingSendPackets {
err := path.RelayPacket(v, nil)
if err != nil {
return err
}
src.Chain.PendingSendPackets = append(src.Chain.PendingSendPackets[0:i], src.Chain.PendingSendPackets[i+1:]...)
src.Chain.PendingSendPackets = src.Chain.PendingSendPackets[1:]
}

src = path.EndpointB
require.NoError(coord.t, src.UpdateClient())
for i, v := range src.Chain.PendingSendPackets {
for _, v := range src.Chain.PendingSendPackets {
err := path.RelayPacket(v, nil)
if err != nil {
return err
}
src.Chain.PendingSendPackets = append(src.Chain.PendingSendPackets[0:i], src.Chain.PendingSendPackets[i+1:]...)
src.Chain.PendingSendPackets = src.Chain.PendingSendPackets[1:]
}
return nil
}
Expand Down

0 comments on commit 606289a

Please sign in to comment.