Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
Fix more tests
  • Loading branch information
KiChjang committed Sep 6, 2022
commit db8e5eb5c0319b8de38019121019b392583c88e3
4 changes: 2 additions & 2 deletions frame/grandpa/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ fn report_equivocation_has_valid_weight() {
.map(<Test as Config>::WeightInfo::report_equivocation)
.collect::<Vec<_>>()
.windows(2)
.all(|w| w[0] < w[1]));
.all(|w| w[0].ref_time() < w[1].ref_time()));
}

#[test]
Expand Down Expand Up @@ -856,7 +856,7 @@ fn valid_equivocation_reports_dont_pay_fees() {
.get_dispatch_info();

// it should have non-zero weight and the fee has to be paid.
assert!(info.weight > Weight::zero());
assert!(info.weight.all_gt(Weight::zero()));
assert_eq!(info.pays_fee, Pays::Yes);

// report the equivocation.
Expand Down