From 27ddd348f74e27fc114174a1fcbf159fe6f833ae Mon Sep 17 00:00:00 2001 From: dimkouv Date: Thu, 7 Nov 2024 17:41:33 +0200 Subject: [PATCH] fix flaky test --- core/services/ocr2/plugins/ccip/internal/rpclib/evm_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/services/ocr2/plugins/ccip/internal/rpclib/evm_test.go b/core/services/ocr2/plugins/ccip/internal/rpclib/evm_test.go index 1a3d7baf0fc..46b41723af3 100644 --- a/core/services/ocr2/plugins/ccip/internal/rpclib/evm_test.go +++ b/core/services/ocr2/plugins/ccip/internal/rpclib/evm_test.go @@ -116,7 +116,7 @@ func TestDefaultEvmBatchCaller_batchCallLimit(t *testing.T) { {numCalls: 10, batchSize: 100, parallelRpcCallsLimit: 10}, {numCalls: 1, batchSize: 100, parallelRpcCallsLimit: 10}, {numCalls: 1000, batchSize: 10, parallelRpcCallsLimit: 2}, - {numCalls: rand.Uint() % 1000, batchSize: rand.Uint() % 500, parallelRpcCallsLimit: rand.Uint() % 500}, + {numCalls: 1 + rand.Uint()%1000, batchSize: 1 + rand.Uint()%500, parallelRpcCallsLimit: 1 + rand.Uint()%500}, } for _, tc := range testCases {