Skip to content

Commit

Permalink
fix prospective parachains test to use shuffled candidate list (#5880)
Browse files Browse the repository at this point in the history
Fixes #5617
  • Loading branch information
alindima authored Oct 2, 2024
1 parent 3de2a92 commit c506305
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,7 @@ fn test_find_ancestor_path_and_find_backable_chain() {
// Now back all candidates. Back them in a random order. The result should always be the same.
let mut candidates_shuffled = candidates.clone();
candidates_shuffled.shuffle(&mut thread_rng());
for candidate in candidates.iter() {
for candidate in candidates_shuffled.iter() {
chain.candidate_backed(candidate);
storage.mark_backed(candidate);
}
Expand Down
11 changes: 11 additions & 0 deletions prdoc/pr_5880.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
title: Fix prospective parachains test to use shuffled candidate list

doc:
- audience: Node Dev
description: |
Fix prospective parachains test to use shuffled candidate list.
Resolves https://github.com/paritytech/polkadot-sdk/issues/5617.

crates:
- name: polkadot-node-core-prospective-parachains
bump: none

0 comments on commit c506305

Please sign in to comment.