Skip to content

Commit

Permalink
CCIP-4803 flaky test: don't send nil to errorChan
Browse files Browse the repository at this point in the history
  • Loading branch information
bukata-sa committed Jan 14, 2025
1 parent ecc1fb0 commit 2753613
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/services/ocr2/plugins/ccip/tokendata/lbtc/lbtc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}()
}

Expand Down

0 comments on commit 2753613

Please sign in to comment.