Skip to content

Commit

Permalink
Auto merge of rust-lang#11976 - ehuss:fix-not_found_permutations, r=e…
Browse files Browse the repository at this point in the history
…page

Fix flaky not_found_permutations test.

This fixes the `registry::not_found_permutations` test which would randomly fail since the order of http requests was not deterministic. The resolver can issue queries in parallel which can process requests out-of-order.

Fixes rust-lang#11975
  • Loading branch information
bors authored and ehuss committed Apr 17, 2023
1 parent 84b7041 commit 9009251
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/testsuite/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3183,13 +3183,14 @@ required by package `foo v0.0.1 ([ROOT]/foo)`
",
)
.run();
let misses = misses.lock().unwrap();
let mut misses = misses.lock().unwrap();
misses.sort();
assert_eq!(
&*misses,
&[
"/index/a-/b-/a-b-c",
"/index/a_/b-/a_b-c",
"/index/a-/b_/a-b_c",
"/index/a_/b-/a_b-c",
"/index/a_/b_/a_b_c"
]
);
Expand Down

0 comments on commit 9009251

Please sign in to comment.