From c4b58b6bd2bacf5ddcefac6f1b90da2066327fa0 Mon Sep 17 00:00:00 2001 From: Benjamin Himes Date: Wed, 11 Jun 2025 18:27:20 +0200 Subject: [PATCH] Updates e2e staking tests to start the subnet first in accordance with the new subtensor version. --- tests/e2e_tests/test_staking_sudo.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/e2e_tests/test_staking_sudo.py b/tests/e2e_tests/test_staking_sudo.py index 904df53ce..0a0984488 100644 --- a/tests/e2e_tests/test_staking_sudo.py +++ b/tests/e2e_tests/test_staking_sudo.py @@ -227,6 +227,30 @@ def test_staking(local_chain, wallet_setup): assert get_identity_output["description"] == sn_description assert get_identity_output["additional"] == sn_add_info + # Start emissions on SNs + for netuid_ in multiple_netuids: + start_subnet_emissions = exec_command_alice( + command="subnets", + sub_command="start", + extra_args=[ + "--netuid", + netuid_, + "--wallet-path", + wallet_path_alice, + "--wallet-name", + wallet_alice.name, + "--hotkey", + wallet_alice.hotkey_str, + "--network", + "ws://127.0.0.1:9945", + "--no-prompt", + ], + ) + assert ( + f"Successfully started subnet {netuid_}'s emission schedule" + in start_subnet_emissions.stdout + ), start_subnet_emissions.stderr + # Add stake to Alice's hotkey add_stake_single = exec_command_alice( command="stake",