Skip to content

Commit c4b58b6

Browse files
committed
Updates e2e staking tests to start the subnet first in accordance with the new subtensor version.
1 parent b374cdd commit c4b58b6

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tests/e2e_tests/test_staking_sudo.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,30 @@ def test_staking(local_chain, wallet_setup):
227227
assert get_identity_output["description"] == sn_description
228228
assert get_identity_output["additional"] == sn_add_info
229229

230+
# Start emissions on SNs
231+
for netuid_ in multiple_netuids:
232+
start_subnet_emissions = exec_command_alice(
233+
command="subnets",
234+
sub_command="start",
235+
extra_args=[
236+
"--netuid",
237+
netuid_,
238+
"--wallet-path",
239+
wallet_path_alice,
240+
"--wallet-name",
241+
wallet_alice.name,
242+
"--hotkey",
243+
wallet_alice.hotkey_str,
244+
"--network",
245+
"ws://127.0.0.1:9945",
246+
"--no-prompt",
247+
],
248+
)
249+
assert (
250+
f"Successfully started subnet {netuid_}'s emission schedule"
251+
in start_subnet_emissions.stdout
252+
), start_subnet_emissions.stderr
253+
230254
# Add stake to Alice's hotkey
231255
add_stake_single = exec_command_alice(
232256
command="stake",

0 commit comments

Comments
 (0)