Skip to content

Commit 7fb89f0

Browse files
committed
Auto merge of #11976 - ehuss:fix-not_found_permutations, r=epage
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 #11975
2 parents d2e7cfb + 6fa758e commit 7fb89f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/testsuite/registry.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3183,13 +3183,14 @@ required by package `foo v0.0.1 ([ROOT]/foo)`
31833183
",
31843184
)
31853185
.run();
3186-
let misses = misses.lock().unwrap();
3186+
let mut misses = misses.lock().unwrap();
3187+
misses.sort();
31873188
assert_eq!(
31883189
&*misses,
31893190
&[
31903191
"/index/a-/b-/a-b-c",
3191-
"/index/a_/b-/a_b-c",
31923192
"/index/a-/b_/a-b_c",
3193+
"/index/a_/b-/a_b-c",
31933194
"/index/a_/b_/a_b_c"
31943195
]
31953196
);

0 commit comments

Comments
 (0)