Skip to content

Commit c200da2

Browse files
committed
fix test
Signed-off-by: Nikhil Ghosh <nikhil@anyscale.com>
1 parent 3293d47 commit c200da2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/ray/llm/tests/batch/cpu/processor/test_processor_base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,8 @@ def test_backward_compatibility_without_map_kwargs(self):
473473

474474
ds = ray.data.range(5)
475475
result = processor(ds).take_all()
476+
# Sort results by result value since order is not guaranteed
477+
result = sorted(result, key=lambda x: x["result"])
476478

477479
for i, row in enumerate(result):
478480
assert row["result"] == i

0 commit comments

Comments
 (0)