diff --git a/tests/e2e_tests/subcommands/subnet/test_metagraph.py b/tests/e2e_tests/subcommands/subnet/test_metagraph.py index 6a6c4198be..93ec9df6cb 100644 --- a/tests/e2e_tests/subcommands/subnet/test_metagraph.py +++ b/tests/e2e_tests/subcommands/subnet/test_metagraph.py @@ -19,13 +19,19 @@ def test_metagraph_command(local_chain, capsys): - netuid = 1 # Register root as Alice keypair, exec_command, wallet = setup_wallet("//Alice") - exec_command(RegisterSubnetworkCommand, ["s", "create"]) - # Verify subnet created successfully - assert local_chain.query("SubtensorModule", "NetworksAdded", [netuid]).serialize() + # The rest of the test will use subnet 2 + netuid = 2 + + for i in range(netuid): + # Register subnet + exec_command(RegisterSubnetworkCommand, ["s", "create"]) + # Verify subnet created successfully + assert local_chain.query( + "SubtensorModule", "NetworksAdded", [i + 1] + ).serialize() subtensor = bittensor.subtensor(network="ws://localhost:9945")