From e4689e6de7f5f995a47fe563b60f81dedc497681 Mon Sep 17 00:00:00 2001 From: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com> Date: Thu, 2 Nov 2023 15:27:25 +0000 Subject: [PATCH] Fix invalid_path test (#5026) --- object_store/src/local.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/object_store/src/local.rs b/object_store/src/local.rs index e5c4e3204663..dd71d9ec1219 100644 --- a/object_store/src/local.rs +++ b/object_store/src/local.rs @@ -1384,13 +1384,14 @@ mod tests { std::fs::write(emoji, "foo").unwrap(); // Can list illegal file - let paths = flatten_list_stream(&integration, None).await.unwrap(); + let mut paths = flatten_list_stream(&integration, None).await.unwrap(); + paths.sort_unstable(); assert_eq!( paths, vec![ - Path::parse("💀").unwrap(), - Path::parse("directory/child.txt").unwrap() + Path::parse("directory/child.txt").unwrap(), + Path::parse("💀").unwrap() ] ); }