mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 19:51:02 +00:00
Removing without_storage_info from scored-pool pallet. (#11996)
* Removing without_storage_info from scored-pool pallet. * Addressing PR feedback * typo * typo * Addressing PR comments and formatting code * Removing unwanted import * Adding a map_err * cargo fmt Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -297,3 +297,20 @@ fn candidacy_resubmitting_works() {
|
||||
assert_eq!(ScoredPool::candidate_exists(who), true);
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn pool_candidates_exceeded() {
|
||||
new_test_ext().execute_with(|| {
|
||||
for i in [1, 2, 3, 4, 6] {
|
||||
let who = i as u64;
|
||||
assert_ok!(ScoredPool::submit_candidacy(Origin::signed(who)));
|
||||
let index = find_in_pool(who).expect("entity must be in pool") as u32;
|
||||
assert_ok!(ScoredPool::score(Origin::signed(ScoreOrigin::get()), who, index, 99));
|
||||
}
|
||||
|
||||
assert_noop!(
|
||||
ScoredPool::submit_candidacy(Origin::signed(8)),
|
||||
Error::<Test, _>::TooManyMembers
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user