@@ -357,6 +357,7 @@ fn test_add_singular_child() {
357
357
Err ( Error :: <Test >:: SubNetworkDoesNotExist . into( ) )
358
358
) ;
359
359
add_network ( netuid, 0 , 0 ) ;
360
+ step_rate_limit ( & TransactionType :: SetChildren , netuid) ;
360
361
assert_eq ! (
361
362
SubtensorModule :: do_set_children(
362
363
RuntimeOrigin :: signed( coldkey) ,
@@ -367,6 +368,7 @@ fn test_add_singular_child() {
367
368
Err ( Error :: <Test >:: NonAssociatedColdKey . into( ) )
368
369
) ;
369
370
SubtensorModule :: create_account_if_non_existent ( & coldkey, & hotkey) ;
371
+ step_rate_limit ( & TransactionType :: SetChildren , netuid) ;
370
372
assert_eq ! (
371
373
SubtensorModule :: do_set_children(
372
374
RuntimeOrigin :: signed( coldkey) ,
@@ -377,6 +379,7 @@ fn test_add_singular_child() {
377
379
Err ( Error :: <Test >:: InvalidChild . into( ) )
378
380
) ;
379
381
let child = U256 :: from ( 3 ) ;
382
+ step_rate_limit ( & TransactionType :: SetChildren , netuid) ;
380
383
assert_ok ! ( SubtensorModule :: do_set_children(
381
384
RuntimeOrigin :: signed( coldkey) ,
382
385
hotkey,
@@ -2396,6 +2399,7 @@ fn test_dynamic_parent_child_relationships() {
2396
2399
step_block ( 11 ) ;
2397
2400
2398
2401
// Change parent-child relationships
2402
+ step_rate_limit ( & TransactionType :: SetChildren , netuid) ;
2399
2403
assert_ok ! ( SubtensorModule :: do_set_children(
2400
2404
RuntimeOrigin :: signed( coldkey_parent) ,
2401
2405
parent,
0 commit comments