Revert "Forcing can be on or off."

This reverts commit 583b0552d6.
This commit is contained in:
Gav Wood
2019-08-12 17:25:34 +02:00
parent 583b0552d6
commit ebba5d1d3c
6 changed files with 24 additions and 50 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_eq!(Staking::force_era(), Forcing::NotForcing);
assert!(!Staking::forcing_new_era());
});
}
@@ -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_eq!(Staking::force_era(), Forcing::NotForcing);
assert!(!Staking::forcing_new_era());
});
}