mirror of
https://github.com/luxfi/netrunner.git
synced 2026-07-27 00:04:23 +00:00
fix e2e
This commit is contained in:
@@ -403,7 +403,7 @@ avalanche-network-runner control remove-node \
|
||||
--request-timeout=3m \
|
||||
--log-level debug \
|
||||
--endpoint="0.0.0.0:8080" \
|
||||
--node-name node5
|
||||
node5
|
||||
```
|
||||
|
||||
To restart a node (in this case, the one named `node1`):
|
||||
@@ -421,8 +421,8 @@ avalanche-network-runner control restart-node \
|
||||
--request-timeout=3m \
|
||||
--log-level debug \
|
||||
--endpoint="0.0.0.0:8080" \
|
||||
--node-name node1 \
|
||||
--avalanchego-path ${AVALANCHEGO_EXEC_PATH}
|
||||
--avalanchego-path ${AVALANCHEGO_EXEC_PATH} \
|
||||
node1
|
||||
```
|
||||
|
||||
To add a node (in this case, a new node named `node99`):
|
||||
@@ -440,8 +440,8 @@ avalanche-network-runner control add-node \
|
||||
--request-timeout=3m \
|
||||
--log-level debug \
|
||||
--endpoint="0.0.0.0:8080" \
|
||||
--node-name node99 \
|
||||
--avalanchego-path ${AVALANCHEGO_EXEC_PATH}
|
||||
--avalanchego-path ${AVALANCHEGO_EXEC_PATH} \
|
||||
node99
|
||||
```
|
||||
|
||||
To pause a node (in this case, node named `node99`):
|
||||
@@ -457,7 +457,7 @@ avalanche-network-runner control pause-node \
|
||||
--request-timeout=3m \
|
||||
--log-level debug \
|
||||
--endpoint="0.0.0.0:8080" \
|
||||
--node-name node99
|
||||
node99
|
||||
```
|
||||
|
||||
To resume a paused node (in this case, node named `node99`):
|
||||
@@ -473,7 +473,7 @@ avalanche-network-runner control resume-node \
|
||||
--request-timeout=3m \
|
||||
--log-level debug \
|
||||
--endpoint="0.0.0.0:8080" \
|
||||
--node-name node99
|
||||
node99
|
||||
```
|
||||
|
||||
You can also provide additional flags that specify the node's config:
|
||||
|
||||
@@ -15,11 +15,10 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/ava-labs/avalanche-network-runner/rpcpb"
|
||||
"github.com/ava-labs/avalanche-network-runner/server"
|
||||
"github.com/ava-labs/avalanchego/api/admin"
|
||||
"github.com/ava-labs/avalanchego/vms/platformvm"
|
||||
|
||||
"github.com/ava-labs/avalanchego/api/admin"
|
||||
"github.com/ava-labs/avalanchego/ids"
|
||||
"github.com/ava-labs/avalanchego/message"
|
||||
avago_constants "github.com/ava-labs/avalanchego/utils/constants"
|
||||
@@ -716,8 +715,7 @@ var _ = ginkgo.Describe("[Start/Remove/Restart/Add/Stop]", func() {
|
||||
})
|
||||
ginkgo.By("API Call using paused node URI will fail", func() {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)
|
||||
cancel()
|
||||
|
||||
defer cancel()
|
||||
platformCli := platformvm.NewClient(pausedNodeURI)
|
||||
_, err := platformCli.GetCurrentValidators(ctx, ids.Empty, nil)
|
||||
gomega.Ω(err).Should(gomega.HaveOccurred())
|
||||
@@ -737,8 +735,7 @@ var _ = ginkgo.Describe("[Start/Remove/Restart/Add/Stop]", func() {
|
||||
})
|
||||
ginkgo.By("API Call using resumed node URI", func() {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)
|
||||
cancel()
|
||||
|
||||
defer cancel()
|
||||
platformCli := platformvm.NewClient(pausedNodeURI)
|
||||
_, err := platformCli.GetCurrentValidators(ctx, ids.Empty, nil)
|
||||
gomega.Ω(err).Should(gomega.BeNil())
|
||||
|
||||
Reference in New Issue
Block a user