From 69119e2be69372b0bb1b8d9058404bb11a58f1f1 Mon Sep 17 00:00:00 2001 From: AnieeG Date: Sun, 22 Oct 2023 15:32:58 -0700 Subject: [PATCH] fix faulty node calculation --- integration-tests/ccip-tests/contracts/contract_deployer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-tests/ccip-tests/contracts/contract_deployer.go b/integration-tests/ccip-tests/contracts/contract_deployer.go index fe306fd241..6bf15f44e7 100644 --- a/integration-tests/ccip-tests/contracts/contract_deployer.go +++ b/integration-tests/ccip-tests/contracts/contract_deployer.go @@ -541,7 +541,7 @@ func OffChainAggregatorV2ConfigWithNodes(numberNodes int, inflightExpiry time.Du } faultyNodes := 0 if numberNodes > 1 { - faultyNodes = numberNodes/3 - 1 + faultyNodes = (numberNodes - 1) / 3 } if faultyNodes == 0 { faultyNodes = 1