Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
arturrez committed Dec 5, 2024
1 parent bb4606a commit 8abf976
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
8 changes: 2 additions & 6 deletions cmd/nodecmd/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,21 +162,17 @@ func localStartNode(_ *cobra.Command, args []string) error {
UseLatestAvalanchegoPreReleaseVersion: useLatestAvalanchegoPreReleaseVersion,
UseLatestAvalanchegoReleaseVersion: useLatestAvalanchegoReleaseVersion,
}
var (
err error
nodeConfig map[string]interface{}
)
nodeConfig := make(map[string]interface{})
if nodeConfigPath != "" {
var err error
nodeConfig, err = utils.ReadJSON(nodeConfigPath)
if err != nil {
return err
}
}

if partialSync {
nodeConfig[config.PartialSyncPrimaryNetworkKey] = true
}

return node.StartLocalNode(
app,
clusterName,
Expand Down
5 changes: 3 additions & 2 deletions tests/e2e/commands/etna.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,6 @@ func AddEtnaSubnetValidatorToCluster(
"blockchain",
"addValidator",
subnetName,
"--cluster",
clusterName,
"--ewoq",
"--balance",
strconv.Itoa(balance),
Expand All @@ -256,6 +254,9 @@ func AddEtnaSubnetValidatorToCluster(
"100s",
"--"+constants.SkipUpdateFlag,
)
if clusterName != "" {
cmd.Args = append(cmd.Args, "--cluster", clusterName)
}
if nodeEndpoint != "" {
cmd.Args = append(cmd.Args, "--node-endpoint", nodeEndpoint)
}
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/testcases/subnet/sov/addValidatorLocal/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var _ = ginkgo.Describe("[Etna Add Validator SOV Local]", func() {
fmt.Println(output)

output, err := commands.AddEtnaSubnetValidatorToCluster(
testLocalNodeName,
"",
subnetName,
"",
ewoqPChainAddress,
Expand Down

0 comments on commit 8abf976

Please sign in to comment.