Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Commit 2753613

Browse files
committed
CCIP-4803 flaky test: don't send nil to errorChan
1 parent ecc1fb0 commit 2753613

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/services/ocr2/plugins/ccip/tokendata/lbtc/lbtc_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,12 @@ func TestLBTCReader_rateLimiting(t *testing.T) {
278278
_, err := lbtcService.ReadTokenData(ctx, cciptypes.EVM2EVMOnRampCCIPSendRequestedWithMeta{
279279
EVM2EVMMessage: cciptypes.EVM2EVMMessage{
280280
SourceTokenData: [][]byte{srcTokenData},
281-
TokenAmounts: []cciptypes.TokenAmount{{Token: ccipcalc.EvmAddrToGeneric(utils.ZeroAddress), Amount: nil}}, // trigger failure due to wrong address
281+
TokenAmounts: []cciptypes.TokenAmount{{Token: ccipcalc.EvmAddrToGeneric(utils.ZeroAddress), Amount: nil}},
282282
},
283283
}, 0)
284-
285-
errorChan <- err
284+
if err != nil {
285+
errorChan <- err
286+
}
286287
}()
287288
}
288289

0 commit comments

Comments
 (0)