Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
sukantoraymond committed Aug 22, 2024
1 parent 461440f commit c6f9dd0
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions subnet/subnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ package subnet
import (
"context"
"fmt"
"github.com/ava-labs/avalanche-tooling-sdk-go/constants"
"github.com/ava-labs/avalanche-tooling-sdk-go/node"
"math/big"
"testing"
"time"
Expand Down Expand Up @@ -244,24 +246,22 @@ func TestValidateSubnet(t *testing.T) {
if err != nil {
panic(err)
}
//
//node := node.Node{
// // NodeID is Avalanche Node ID of the node
// NodeID: "NodeID-Mb3AwcUpWysCWLP6mSpzzJVgYawJWzPHu",
// // IP address of the node
// IP: "18.144.79.215",
// // SSH configuration for the node
// SSHConfig: node.SSHConfig{
// User: constants.RemoteHostUser,
// PrivateKeyPath: "/Users/raymondsukanto/.ssh/rs_key_pair_sdk.pem",
// },
// // Cloud is the cloud service that the node is on
// Cloud: node.AWSCloud,
// // CloudConfig is the cloud specific configuration for the node
// CloudConfig: *cp,
// // Role of the node can be Validator, API, AWMRelayer, Loadtest, or Monitor
// Roles: []node.SupportedRole{node.Validator},
//}

_ := node.Node{
// NodeID is Avalanche Node ID of the node
NodeID: "NodeID-Mb3AwcUpWysCWLP6mSpzzJVgYawJWzPHu",
// IP address of the node
IP: "18.144.79.215",
// SSH configuration for the node
SSHConfig: node.SSHConfig{
User: constants.RemoteHostUser,
PrivateKeyPath: "/Users/raymondsukanto/.ssh/rs_key_pair_sdk.pem",
},
// Cloud is the cloud service that the node is on
Cloud: node.AWSCloud,
// Role of the node can be Validator, API, AWMRelayer, Loadtest, or Monitor
Roles: []node.SupportedRole{node.Validator},
}
//
//subnetIDsToValidate := []string{newSubnet.SubnetID.String()}
//fmt.Printf("Reconfiguring node %s to track subnet %s\n", node.NodeID, subnetIDsToValidate)
Expand Down

0 comments on commit c6f9dd0

Please sign in to comment.