Skip to content
Snippets Groups Projects
Commit 7468a8ec authored by Cédric Moreau's avatar Cédric Moreau
Browse files

wip: test: `multiple_authors`

parent fe9f1335
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,19 @@ fn multiple_authors() {
assert_eq!(pallet::EvaluationPool0::<Test>::get().0.len(), 0);
assert_eq!(pallet::EvaluationPool1::<Test>::get().0.len(), 0);
// Evaluation #2 replay i disallowed
// Evaluation #3 replay is disallowed
assert_err!(
Distance::update_evaluation(
RuntimeOrigin::none(),
ComputationResult {
distances: vec![Perbill::from_percent(20)]
}
),
pallet::Error::<Test>::ManyEvaluationsByAuthor
);
// Evaluation #1 as well is disallowed
run_to_block(SESSION_2_START + 3); // to change author
assert_err!(
Distance::update_evaluation(
RuntimeOrigin::none(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment