Skip to content

Commit

Permalink
Fix require ordering in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asoliman92 committed Jul 11, 2024
1 parent d697aa8 commit 060f872
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ func TestPingPong(t *testing.T) {
for logIter.Next() {
}
log := logIter.Event
require.Equal(t, log.DestChainSelector, otherChain)
require.Equal(t, log.Message.Sender, pingPong.Address())
require.Equal(t, otherChain, log.DestChainSelector)
require.Equal(t, pingPong.Address(), log.Message.Sender)
chainPingPongAddr := pingPongs[otherChain][chainID].Address().Bytes()
// With chain agnostic addresses we need to pad the address to the correct length if the receiver is zero prefixed
paddedAddr := gethcommon.LeftPadBytes(chainPingPongAddr, len(log.Message.Receiver))
require.Equal(t, log.Message.Receiver, paddedAddr)
require.Equal(t, paddedAddr, log.Message.Receiver)
}
}
}
Expand Down

0 comments on commit 060f872

Please sign in to comment.