Skip to content

Commit 3673e1b

Browse files
author
Roman
committed
improve e2e test
1 parent 083a9ac commit 3673e1b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/e2e_tests/test_hotkeys.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ async def test_children(local_chain, subtensor, alice_wallet, bob_wallet, dave_w
7878
"""
7979
Tests:
8080
- Get default children (empty list)
81+
- Call `root_set_pending_childkey_cooldown` extrinsic.
8182
- Update children list
8283
- Checking pending children
8384
- Checking cooldown period
@@ -93,7 +94,7 @@ async def test_children(local_chain, subtensor, alice_wallet, bob_wallet, dave_w
9394
wallet=alice_wallet, cooldown=ROOT_COOLDOWN
9495
)
9596
assert success, f"Call `root_set_pending_childkey_cooldown` failed: {message}"
96-
assert message == ""
97+
assert message == "Success with `root_set_pending_childkey_cooldown_extrinsic` response."
9798

9899
assert subtensor.register_subnet(dave_wallet, True, True)
99100
assert subtensor.subnet_exists(dave_subnet_netuid), (
@@ -249,7 +250,7 @@ async def test_children(local_chain, subtensor, alice_wallet, bob_wallet, dave_w
249250
raise_error=True,
250251
)
251252

252-
assert error == ""
253+
assert error == "Success with `set_children_extrinsic` response."
253254
assert success is True
254255

255256
set_children_block = subtensor.get_current_block()

0 commit comments

Comments
 (0)