Skip to content

Commit

Permalink
Better error
Browse files Browse the repository at this point in the history
  • Loading branch information
kalverra committed Oct 16, 2024
1 parent dfcf9f3 commit a1358c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion integration-tests/ccip-tests/actions/ccip_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3651,7 +3651,7 @@ func (lane *CCIPLane) DeployNewCCIPLane(
execNodes := clNodes[env.ExecNodeStartIndex : env.ExecNodeStartIndex+env.NumOfExecNodes]
if !commitAndExecOnSameDON {
if len(clNodes) < 11 {
return fmt.Errorf("not enough CL nodes for separate commit and execution nodes")
return fmt.Errorf("not enough CL nodes for separate commit and execution nodes, need at least 11 CL nodes, found %d", len(clNodes))
}
bootstrapExec = clNodes[1] // for a set-up of different commit and execution nodes second node is the bootstrapper for execution nodes
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[CCIP]
[CCIP.Env]
[CCIP.Env.NewCLCluster]
NoOfNodes = 17
NoOfNodes = 12
2 changes: 1 addition & 1 deletion integration-tests/ccip-tests/testsetups/ccip.go
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@ func (o *CCIPTestSetUpOutputs) CreateEnvironment(
ccipEnv.NumOfExecNodes = ccipEnv.NumOfCommitNodes
if !pointer.GetBool(testConfig.TestGroupInput.CommitAndExecuteOnSameDON) {
if len(ccipEnv.CLNodesWithKeys) < 11 {
return fmt.Errorf("not enough CL nodes for separate commit and execution nodes")
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")
Expand Down

0 comments on commit a1358c5

Please sign in to comment.