This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Bags-list tests don't compile #14033
Copy link
Copy link
Closed
Description
Is there an existing issue?
- I have searched the existing issues
Experiencing problems? Have you tried our Stack Exchange first?
- This is not a support question.
Description of bug
When running: cargo test -p pallet-bags-list the following error occurs:
error[E0407]: method `set_score_of` is not a member of trait `frame_election_provider_support::ScoreProvider`
--> frame/bags-list/src/mock.rs:44:2
|
44 | / fn set_score_of(id: &AccountId, weight: Self::Score) {
45 | | NEXT_VOTE_WEIGHT_MAP.with(|m| m.borrow_mut().insert(*id, ...
46 | | }
| |_____^ not a member of trait `frame_election_provider_support::ScoreProvider`
warning: unused import: `frame_election_provider_support::ScoreProvider`
--> frame/bags-list/src/benchmarks.rs:25:5
|
25 | use frame_election_provider_support::ScoreProvider;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
error[E0599]: no function or associated item named `set_score_of` found for associated type `<T as Config<I>>::ScoreProvider` in the current scope
--> frame/bags-list/src/benchmarks.rs:75:21
|
75 | T::ScoreProvider::set_score_of(&origin_middle, dest_bag_thresh);
| ^^^^^^^^^^^^ function or associated item not found in `<T as Config<I>>::ScoreProvider`
error[E0599]: no function or associated item named `set_score_of` found for associated type `<T as Config<I>>::ScoreProvider` in the current scope
--> frame/bags-list/src/benchmarks.rs:134:21
|
134 | T::ScoreProvider::set_score_of(&origin_tail, dest_bag_thresh);
| ^^^^^^^^^^^^ function or associated item not found in `<T as Config<I>>::ScoreProvider`
.
.
.
And so on
Steps to reproduce
cargo test -p pallet-bags-list
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels