Skip to content

Commit

Permalink
Fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
marun committed Nov 29, 2023
1 parent 7a6f17f commit e8345a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions tests/fixture/e2e/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"github.com/ava-labs/avalanchego/tests"
"github.com/ava-labs/avalanchego/tests/fixture/tmpnet"
"github.com/ava-labs/avalanchego/tests/fixture/tmpnet/local"
"github.com/ava-labs/avalanchego/utils/set"
"github.com/ava-labs/avalanchego/vms/platformvm/txs/executor"
"github.com/ava-labs/avalanchego/vms/secp256k1fx"
"github.com/ava-labs/avalanchego/wallet/subnet/primary"
Expand Down Expand Up @@ -67,7 +68,7 @@ func NewWallet(keychain *secp256k1fx.Keychain, nodeURI tmpnet.NodeURI) primary.W
}

// Create a new wallet for the provided keychain against the specified node URI.
func NewWalletWithTxIDs(keychain *secp256k1fx.Keychain, nodeURI testnet.NodeURI, txIDs ...ids.ID) primary.Wallet {
func NewWalletWithTxIDs(keychain *secp256k1fx.Keychain, nodeURI tmpnet.NodeURI, txIDs ...ids.ID) primary.Wallet {
tests.Outf("{{blue}} initializing a new wallet for node %s with URI: %s {{/}}\n", nodeURI.NodeID, nodeURI.URI)
baseWallet, err := primary.MakeWallet(DefaultContext(), &primary.WalletConfig{
URI: nodeURI.URI,
Expand Down Expand Up @@ -258,7 +259,7 @@ func StartLocalNetwork(avalancheGoExecPath string, networkDir string) *local.Loc
return network
}

func RegisterNodeforCleanup(node testnet.Node) {
func RegisterNodeforCleanup(node tmpnet.Node) {
ginkgo.DeferCleanup(func() {
tests.Outf("shutting down ephemeral node %q\n", node.GetID())
ctx, cancel := context.WithTimeout(context.Background(), DefaultTimeout)
Expand Down
4 changes: 2 additions & 2 deletions tests/fixture/tmpnet/local/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ import (
"strconv"
"time"

"github.com/ava-labs/avalanchego/utils/set"
"github.com/ava-labs/avalanchego/config"
"github.com/ava-labs/avalanchego/genesis"
"github.com/ava-labs/avalanchego/ids"
"github.com/ava-labs/avalanchego/tests/fixture/tmpnet"
"github.com/ava-labs/avalanchego/utils/constants"
"github.com/ava-labs/avalanchego/utils/crypto/secp256k1"
"github.com/ava-labs/avalanchego/utils/perms"
"github.com/ava-labs/avalanchego/utils/set"
)

const (
Expand Down Expand Up @@ -450,7 +450,7 @@ func (ln *LocalNetwork) GetURIs() []tmpnet.NodeURI {
// Stop all nodes in the network.
func (ln *LocalNetwork) Stop() error {
// Assume the nodes are loaded and the pids are current
allNodes := []testnet.Node{}
allNodes := []tmpnet.Node{}
for _, node := range ln.Nodes {
allNodes = append(allNodes, node)
}
Expand Down

0 comments on commit e8345a1

Please sign in to comment.