Skip to content

Commit

Permalink
Another tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
kalverra committed Oct 17, 2024
1 parent e84f4ee commit f169fa1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration-tests/ccip-tests/testsetups/ccip.go
Original file line number Diff line number Diff line change
Expand Up @@ -1363,15 +1363,15 @@ func (o *CCIPTestSetUpOutputs) CreateEnvironment(
ccipEnv.NumOfCommitNodes = testConfig.TestGroupInput.NoOfCommitNodes
ccipEnv.NumOfExecNodes = ccipEnv.NumOfCommitNodes
if !pointer.GetBool(testConfig.TestGroupInput.CommitAndExecuteOnSameDON) {
if ccipEnv.NumOfExecNodes < 4 {
return fmt.Errorf("insufficient number of exec nodes, need at least 4, found %d", ccipEnv.NumOfExecNodes)
}
if len(ccipEnv.CLNodesWithKeys[chains[0].GetChainID().String()]) < 11 {
return fmt.Errorf("not enough CL nodes for separate commit and execution nodes, need at least 11 CL nodes, found %d", len(ccipEnv.CLNodesWithKeys))
}
if testConfig.TestGroupInput.NoOfCommitNodes >= totalNodes {
return fmt.Errorf("number of commit nodes can not be greater than total number of nodes in DON")
}
if ccipEnv.NumOfExecNodes < 4 {
return fmt.Errorf("insufficient number of exec nodes")
}
// first two nodes are reserved for bootstrap commit and bootstrap exec
ccipEnv.CommitNodeStartIndex = 2
ccipEnv.ExecNodeStartIndex = 2 + testConfig.TestGroupInput.NoOfCommitNodes
Expand Down

0 comments on commit f169fa1

Please sign in to comment.