You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, using an existing network with the e2e suite required
starting the network with the tmpnetctl cli. This has been replaced
with direct support for network reuse within the e2e fixture to better
support testing of networks with subnets and remove the need for
other repos (subnet-evm and hypersdk) to use tmpnetctl:
- Replace the --use-existing-network flag with --reuse-network flag
which will ensure that a suite-compatible network is started if
not already running and reused if already running
- Added the --stop-network flag to support stopping a network
previously started by --reuse-network and exiting immediately without
running tests.
tmpnetctl is left in place for now but its future is uncertain.
fmt.Sprintf("[optional] the dir containing the configuration of an existing network to target for testing. Will only be used if --use-existing-network is specified. Also possible to configure via the %s env variable.", tmpnet.NetworkDirEnvName),
72
+
fmt.Sprintf("[optional] the dir containing the configuration of an existing network to target for testing. Will only be used if --reuse-network is specified. Also possible to configure via the %s env variable.", tmpnet.NetworkDirEnvName),
68
73
)
69
74
flag.BoolVar(
70
-
&vars.useExistingNetwork,
71
-
"use-existing-network",
75
+
&vars.reuseNetwork,
76
+
"reuse-network",
72
77
false,
73
-
"[optional] whether to target the existing network identified by --network-dir.",
78
+
"[optional] reuse an existing network. If an existing network is not already running, create a new one and leave it running for subsequent usage.",
74
79
)
75
80
flag.DurationVar(
76
81
&vars.networkShutdownDelay,
77
82
"network-shutdown-delay",
78
83
12*time.Second, // Make sure this value takes into account the scrape_interval defined in scripts/run_prometheus.sh
79
84
"[optional] the duration to wait before shutting down the test network at the end of the test run. A value greater than the scrape interval is suggested. 0 avoids waiting for shutdown.",
80
85
)
86
+
flag.BoolVar(
87
+
&vars.stopNetwork,
88
+
"stop-network",
89
+
false,
90
+
"[optional] stop an existing network and exit without executing any tests.",
0 commit comments