File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
pallets/subtensor/src/tests Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -3953,6 +3953,13 @@ fn test_dividend_distribution_with_children_same_coldkey_owner() {
3953
3953
#[ test]
3954
3954
fn test_pending_cooldown_one_day ( ) {
3955
3955
let curr_block = 1 ;
3956
+
3957
+ let expected_cooldown = if cfg ! ( feature = "fast-blocks" ) {
3958
+ 15
3959
+ } else {
3960
+ 7_200
3961
+ } ;
3962
+
3956
3963
new_test_ext ( curr_block) . execute_with ( || {
3957
3964
let coldkey = U256 :: from ( 1 ) ;
3958
3965
let hotkey = U256 :: from ( 2 ) ;
@@ -3980,6 +3987,6 @@ fn test_pending_cooldown_one_day() {
3980
3987
pending_children. 0 ,
3981
3988
vec![ ( proportion1, child1) , ( proportion2, child2) ]
3982
3989
) ;
3983
- assert_eq ! ( pending_children. 1 , curr_block + 7_200 ) ;
3990
+ assert_eq ! ( pending_children. 1 , curr_block + expected_cooldown ) ;
3984
3991
} ) ;
3985
3992
}
You can’t perform that action at this time.
0 commit comments