diff --git a/proof_of_stake/src/tests.rs b/proof_of_stake/src/tests.rs index a4372a11f5..edc01d3c35 100644 --- a/proof_of_stake/src/tests.rs +++ b/proof_of_stake/src/tests.rs @@ -923,6 +923,7 @@ fn test_slashes_with_unbonding_aux( s.commit_block().unwrap(); current_epoch = advance_epoch(&mut s, ¶ms); + super::process_slashes(&mut s, current_epoch).unwrap(); // Discover first slash let slash_0_evidence_epoch = current_epoch; @@ -946,6 +947,7 @@ fn test_slashes_with_unbonding_aux( slash_0_evidence_epoch + params.slash_processing_epoch_offset(); while current_epoch < unfreeze_epoch { current_epoch = advance_epoch(&mut s, ¶ms); + super::process_slashes(&mut s, current_epoch).unwrap(); } // Advance more epochs randomly from the generated delay @@ -981,6 +983,7 @@ fn test_slashes_with_unbonding_aux( let withdraw_epoch = unbond_epoch + params.withdrawable_epoch_offset(); while current_epoch < withdraw_epoch { current_epoch = advance_epoch(&mut s, ¶ms); + super::process_slashes(&mut s, current_epoch).unwrap(); } let token = staking_token_address(&s); let val_balance_pre = read_balance(&s, &token, val_addr).unwrap(); @@ -1905,8 +1908,8 @@ fn advance_epoch(s: &mut TestWlStorage, params: &PosParams) -> Epoch { &below_capacity_validator_set_handle(), ) .unwrap(); - process_slashes(s, current_epoch).unwrap(); - dbg!(current_epoch); + // process_slashes(s, current_epoch).unwrap(); + // dbg!(current_epoch); current_epoch }