From 90092514e0bb617a29c1453b94732f20a5f22afb Mon Sep 17 00:00:00 2001 From: bors Date: Fri, 14 Apr 2023 15:45:27 +0000 Subject: [PATCH] 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 --- tests/testsuite/registry.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/testsuite/registry.rs b/tests/testsuite/registry.rs index 8bbb983c19d..05ec9b15860 100644 --- a/tests/testsuite/registry.rs +++ b/tests/testsuite/registry.rs @@ -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" ] );