Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AnieeG committed Oct 2, 2023
1 parent 7b2add9 commit 18f1473
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions integration-tests/ccip-tests/actions/ccip_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
_ "embed"
"fmt"
"math/big"
"strconv"
"strings"
"sync"
"testing"
Expand Down Expand Up @@ -2178,7 +2177,7 @@ func (c *CCIPTestEnv) ChaosLabelForCLNodes(t *testing.T) {
for i := c.commitNodeStartIndex; i < len(c.CLNodes); i++ {
labelSelector := map[string]string{
"app": "chainlink-0",
"instance": strconv.Itoa(i),
"instance": fmt.Sprintf("node-%d", i),
}
// commit node starts from index 2
if i >= c.commitNodeStartIndex && i < c.commitNodeStartIndex+c.numOfCommitNodes {
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/ccip-tests/load/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (l *loadArgs) Setup(sameCommitAndExec bool) {
lggr := l.lggr
var setUpArgs *testsetups.CCIPTestSetUpOutputs
if !l.TestCfg.ExistingDeployment {
replicas := int64(6)
replicas := 6
if !sameCommitAndExec {
replicas = 12
}
Expand Down
8 changes: 4 additions & 4 deletions integration-tests/ccip-tests/testsetups/ccip.go
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ func CCIPDefaultTestSetUp(
t *testing.T,
lggr zerolog.Logger,
envName string,
numOfCLNodes int64,
numOfCLNodes int,
transferAmounts []*big.Int,
tokenDeployerFns []blockchain.ContractDeployer,
numOfCommitNodes int, commitAndExecOnSameDON, bidirectional bool,
Expand Down Expand Up @@ -907,7 +907,7 @@ func CCIPDefaultTestSetUp(
}
} else {
clProps := make(map[string]interface{})
clProps["replicas"] = strconv.FormatInt(numOfCLNodes, 10)
clProps["replicas"] = numOfCLNodes
clProps["db"] = inputs.CLNodeDBResourceProfile
clProps["chainlink"] = map[string]interface{}{
"resources": inputs.CLNodeResourceProfile,
Expand Down Expand Up @@ -1125,7 +1125,7 @@ func CCIPExistingDeploymentTestSetUp(

func DeployLocalCluster(
t *testing.T,
noOfCLNodes int64,
noOfCLNodes int,
networks []blockchain.EVMNetwork,
) (*test_env.CLClusterTestEnv, func() error) {
env, err := test_env.NewCLTestEnvBuilder().
Expand All @@ -1150,7 +1150,7 @@ func DeployLocalCluster(
if err != nil {
return err
}
return env.StartClNodes(toml, int(noOfCLNodes), "")
return env.StartClNodes(toml, noOfCLNodes, "")
}
return env, deployCL
}
Expand Down

0 comments on commit 18f1473

Please sign in to comment.