Skip to content

Commit

Permalink
fixes test
Browse files Browse the repository at this point in the history
  • Loading branch information
gus-opentensor committed Aug 6, 2024
1 parent 38e55a5 commit 8e2fe29
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/e2e_tests/subcommands/subnet/test_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ def test_list_command(local_chain, capsys):
# Register root as Alice
keypair, exec_command, wallet = setup_wallet("//Alice")

netuids = [0, 3]
netuid = 0

assert local_chain.query("SubtensorModule", "NetworksAdded", netuids).serialize()
assert local_chain.query("SubtensorModule", "NetworksAdded", [netuid]).serialize()

exec_command(RegisterSubnetworkCommand, ["s", "create"])

netuids.append(1)
netuids.sort()
netuid - 1

# Verify subnet 1 created successfully
assert local_chain.query("SubtensorModule", "NetworksAdded", netuids).serialize()
assert local_chain.query("SubtensorModule", "NetworksAdded", [netuid]).serialize()

0 comments on commit 8e2fe29

Please sign in to comment.