@@ -90,7 +90,8 @@ async def test_children(local_chain, subtensor, alice_wallet, bob_wallet, dave_w
90
90
"""
91
91
92
92
dave_subnet_netuid = subtensor .get_total_subnets () # 2
93
- set_tempo = 10
93
+ set_tempo = 10 # affect to non-fast-blocks mode
94
+
94
95
assert subtensor .register_subnet (dave_wallet , True , True )
95
96
assert subtensor .subnet_exists (dave_subnet_netuid ), (
96
97
f"Subnet #{ dave_subnet_netuid } does not exist."
@@ -99,25 +100,26 @@ async def test_children(local_chain, subtensor, alice_wallet, bob_wallet, dave_w
99
100
assert wait_to_start_call (subtensor , dave_wallet , dave_subnet_netuid )
100
101
101
102
# set the same tempo for both type of nodes (to avoid tests timeout)
102
- assert (
103
- sudo_set_admin_utils (
104
- local_chain ,
105
- alice_wallet ,
106
- call_function = "sudo_set_tempo" ,
107
- call_params = {"netuid" : dave_subnet_netuid , "tempo" : set_tempo },
108
- )[0 ]
109
- is True
110
- )
103
+ if not subtensor .is_fast_blocks ():
104
+ assert (
105
+ sudo_set_admin_utils (
106
+ local_chain ,
107
+ alice_wallet ,
108
+ call_function = "sudo_set_tempo" ,
109
+ call_params = {"netuid" : dave_subnet_netuid , "tempo" : set_tempo },
110
+ )[0 ]
111
+ is True
112
+ )
111
113
112
- # assert (
113
- # sudo_set_admin_utils(
114
- # local_chain,
115
- # alice_wallet,
116
- # call_function="sudo_set_tx_rate_limit",
117
- # call_params={"tx_rate_limit": 100},
118
- # )[0]
119
- # is True
120
- # )
114
+ # assert (
115
+ # sudo_set_admin_utils(
116
+ # local_chain,
117
+ # alice_wallet,
118
+ # call_function="sudo_set_tx_rate_limit",
119
+ # call_params={"tx_rate_limit": 100},
120
+ # )[0]
121
+ # is True
122
+ # )
121
123
122
124
with pytest .raises (RegistrationNotPermittedOnRootSubnet ):
123
125
subtensor .set_children (
@@ -269,9 +271,7 @@ async def test_children(local_chain, subtensor, alice_wallet, bob_wallet, dave_w
269
271
assert pending == [(1.0 , bob_wallet .hotkey .ss58_address )]
270
272
logging .console .info (f"Cooldown 1 is: { cooldown } " )
271
273
272
- subtensor .wait_for_block (cooldown )
273
-
274
- await wait_epoch (subtensor , netuid = dave_subnet_netuid )
274
+ subtensor .wait_for_block (cooldown + 1 )
275
275
276
276
success , children , error = subtensor .get_children (
277
277
alice_wallet .hotkey .ss58_address ,
0 commit comments