Skip to content

Commit 73094c9

Browse files
committed
Merge remote-tracking branch 'origin/hotfix-cooldown' into hotfix-cooldown
2 parents 651b8be + 17e48b2 commit 73094c9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pallets/subtensor/src/tests/children.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3949,7 +3949,7 @@ fn test_dividend_distribution_with_children_same_coldkey_owner() {
39493949
}
39503950

39513951
#[test]
3952-
fn test_pending_cooldown_one_day() {
3952+
fn test_pending_cooldown_as_expected() {
39533953
let curr_block = 1;
39543954
// TODO: Fix when CHK splitting patched
39553955
// let expected_cooldown = if cfg!(feature = "fast-blocks") {
@@ -3958,8 +3958,6 @@ fn test_pending_cooldown_one_day() {
39583958
// 7200
39593959
// };
39603960

3961-
let expected_cooldown = 0;
3962-
39633961
new_test_ext(curr_block).execute_with(|| {
39643962
let coldkey = U256::from(1);
39653963
let hotkey = U256::from(2);
@@ -3968,6 +3966,7 @@ fn test_pending_cooldown_one_day() {
39683966
let netuid: u16 = 1;
39693967
let proportion1: u64 = 1000;
39703968
let proportion2: u64 = 2000;
3969+
let expected_cooldown = PendingChildKeyCooldown::<Test>::get();
39713970

39723971
// Add network and register hotkey
39733972
add_network(netuid, 13, 0);

0 commit comments

Comments
 (0)