From 2e215dc567342cfa4af13b29e05a076811d1d0b8 Mon Sep 17 00:00:00 2001 From: Lonnie Liu <95255098+aslonnie@users.noreply.github.com> Date: Wed, 14 Jun 2023 10:54:48 -0700 Subject: [PATCH] Fix data test failure (#36397) Signed-off-by: Lonnie Liu Signed-off-by: e428265 --- python/ray/data/tests/test_parquet.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/ray/data/tests/test_parquet.py b/python/ray/data/tests/test_parquet.py index d701d6ce2f13..4dfc1a8a1d2e 100644 --- a/python/ray/data/tests/test_parquet.py +++ b/python/ray/data/tests/test_parquet.py @@ -852,9 +852,9 @@ def test_parquet_write_create_dir( assert not os.path.isdir(all_empty_path) assert os.path.isdir(some_empty_path) # Only files for the non-empty blocks should be created. - assert os.listdir(some_empty_path) == [ - f"{some_empty_key}_00000{i}.parquet" for i in range(2) - ] + file_list = os.listdir(some_empty_path) + file_list.sort() + assert file_list == [f"{some_empty_key}_00000{i}.parquet" for i in range(2)] else: assert ( fs.get_file_info(_unwrap_protocol(all_empty_path)).type