From 060f8729705e91d874985e14e55459f1e3b8cc7d Mon Sep 17 00:00:00 2001 From: asoliman Date: Thu, 11 Jul 2024 20:48:05 +0400 Subject: [PATCH] Fix require ordering in tests --- .../ocr3/plugins/ccip_integration_tests/ping_pong_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/services/ocr3/plugins/ccip_integration_tests/ping_pong_test.go b/core/services/ocr3/plugins/ccip_integration_tests/ping_pong_test.go index 7bf364d7c5..1b1e96693a 100644 --- a/core/services/ocr3/plugins/ccip_integration_tests/ping_pong_test.go +++ b/core/services/ocr3/plugins/ccip_integration_tests/ping_pong_test.go @@ -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) } } }