Forcing can be on or off.

This commit is contained in:
Gav Wood
2019-08-12 17:24:12 +02:00
parent 248237647b
commit 583b0552d6
6 changed files with 50 additions and 24 deletions
+2 -2
View File
@@ -108,7 +108,7 @@ fn no_offline_should_work() {
assert_eq!(Staking::slash_count(&10), 0);
assert_eq!(Balances::free_balance(&10), 1);
// New era is not being forced
assert!(!Staking::forcing_new_era());
assert_eq!(Staking::force_era(), Forcing::NotForcing);
});
}
@@ -163,7 +163,7 @@ fn invulnerability_should_work() {
assert!(<Validators<Test>>::exists(&11));
// New era not being forced
// NOTE: new era is always forced once slashing happens -> new validators need to be chosen.
assert!(!Staking::forcing_new_era());
assert_eq!(Staking::force_era(), Forcing::NotForcing);
});
}