mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
[train] Fix assertion in test (#20893)
This commit is contained in:
parent
b4790900f5
commit
3285bb6b9f
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ def test_run_iterator(ray_start_2_cpus):
|
|||
|
||||
count = 0
|
||||
for results in iterator:
|
||||
assert (value["index"] == count for value in results)
|
||||
assert all(value["index"] == count for value in results)
|
||||
count += 1
|
||||
|
||||
assert count == 3
|
||||
|
|
Loading…
Add table
Reference in a new issue