Skip to content

Commit

Permalink
fixup: Remove unnecessary usage of NodeProcessContext
Browse files Browse the repository at this point in the history
  • Loading branch information
marun committed Dec 10, 2023
1 parent 4158d3e commit f9aada9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/c/dynamic_fees.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var _ = e2e.DescribeCChain("[Dynamic Fees]", func() {
node := privateNetwork.Nodes[0]
nodeURI := tmpnet.NodeURI{
ID: node.ID,
URI: node.NodeProcessContext.URI,
URI: node.URI,
}
ethClient := e2e.NewEthClient(nodeURI)

Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/faultinjection/duplicate_node_id.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func checkConnectedPeers(existingNodes []*tmpnet.Node, newNode *tmpnet.Node) {
require := require.New(ginkgo.GinkgoT())

// Collect the node ids of the new node's peers
infoClient := info.NewClient(newNode.NodeProcessContext.URI)
infoClient := info.NewClient(newNode.URI)
peers, err := infoClient.Peers(e2e.DefaultContext())
require.NoError(err)
peerIDs := set.NewSet[ids.NodeID](len(existingNodes))
Expand All @@ -79,7 +79,7 @@ func checkConnectedPeers(existingNodes []*tmpnet.Node, newNode *tmpnet.Node) {
require.True(peerIDs.Contains(existingNode.ID))

// Check that the new node is a peer
infoClient := info.NewClient(existingNode.NodeProcessContext.URI)
infoClient := info.NewClient(existingNode.URI)
peers, err := infoClient.Peers(e2e.DefaultContext())
require.NoError(err)
isPeer := false
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/p/interchain_workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ var _ = e2e.DescribePChain("[Interchain Workflow]", ginkgo.Label(e2e.UsesCChainL
e2e.WaitForHealthy(node)

ginkgo.By("retrieving new node's id and pop")
infoClient := info.NewClient(node.NodeProcessContext.URI)
infoClient := info.NewClient(node.URI)
nodeID, nodePOP, err := infoClient.GetNodeID(e2e.DefaultContext())
require.NoError(err)

Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/p/staking_rewards.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@ var _ = ginkgo.Describe("[Staking Rewards]", func() {
pWallet := baseWallet.P()

ginkgo.By("retrieving alpha node id and pop")
alphaInfoClient := info.NewClient(alphaNode.NodeProcessContext.URI)
alphaInfoClient := info.NewClient(alphaNode.URI)
alphaNodeID, alphaPOP, err := alphaInfoClient.GetNodeID(e2e.DefaultContext())
require.NoError(err)

ginkgo.By("retrieving beta node id and pop")
betaInfoClient := info.NewClient(betaNode.NodeProcessContext.URI)
betaInfoClient := info.NewClient(betaNode.URI)
betaNodeID, betaPOP, err := betaInfoClient.GetNodeID(e2e.DefaultContext())
require.NoError(err)

pvmClient := platformvm.NewClient(alphaNode.NodeProcessContext.URI)
pvmClient := platformvm.NewClient(alphaNode.URI)

const (
delegationPercent = 0.10 // 10%
Expand Down

0 comments on commit f9aada9

Please sign in to comment.