From 275361351ecad76a3dfe97be30f6402a077914b6 Mon Sep 17 00:00:00 2001 From: Aleksandr Bukata Date: Tue, 14 Jan 2025 14:54:55 +0700 Subject: [PATCH] CCIP-4803 flaky test: don't send nil to errorChan --- .../services/ocr2/plugins/ccip/tokendata/lbtc/lbtc_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/services/ocr2/plugins/ccip/tokendata/lbtc/lbtc_test.go b/core/services/ocr2/plugins/ccip/tokendata/lbtc/lbtc_test.go index 8b65685faa..acb4f6e94b 100644 --- a/core/services/ocr2/plugins/ccip/tokendata/lbtc/lbtc_test.go +++ b/core/services/ocr2/plugins/ccip/tokendata/lbtc/lbtc_test.go @@ -278,11 +278,12 @@ func TestLBTCReader_rateLimiting(t *testing.T) { _, err := lbtcService.ReadTokenData(ctx, cciptypes.EVM2EVMOnRampCCIPSendRequestedWithMeta{ EVM2EVMMessage: cciptypes.EVM2EVMMessage{ SourceTokenData: [][]byte{srcTokenData}, - TokenAmounts: []cciptypes.TokenAmount{{Token: ccipcalc.EvmAddrToGeneric(utils.ZeroAddress), Amount: nil}}, // trigger failure due to wrong address + TokenAmounts: []cciptypes.TokenAmount{{Token: ccipcalc.EvmAddrToGeneric(utils.ZeroAddress), Amount: nil}}, }, }, 0) - - errorChan <- err + if err != nil { + errorChan <- err + } }() }