Skip to content

Commit

Permalink
[core] increase timeout on windows for test_scheduling_class_depth (r…
Browse files Browse the repository at this point in the history
…ay-project#42585)

Signed-off-by: Lonnie Liu <[email protected]>
  • Loading branch information
aslonnie authored Jan 23, 2024
1 parent a217f2e commit c7866c9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions python/ray/tests/test_scheduling.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,20 +729,24 @@ def start_infeasible(n):
# because one has depth=1, and the other has depth=2.
metric_name = "ray_internal_num_infeasible_scheduling_classes"

# timeout=60 necessary to pass on windows debug/asan builds.
timeout = 60
if sys.platform == "win32":
# longer timeout is necessary to pass on windows debug/asan builds.
timeout = 180

wait_for_condition(
get_metric_check_condition([MetricSamplePattern(name=metric_name, value=2)]),
timeout=60,
timeout=timeout,
)
start_infeasible.remote(2)
wait_for_condition(
get_metric_check_condition([MetricSamplePattern(name=metric_name, value=3)]),
timeout=60,
timeout=timeout,
)
start_infeasible.remote(4)
wait_for_condition(
get_metric_check_condition([MetricSamplePattern(name=metric_name, value=4)]),
timeout=60,
timeout=timeout,
)


Expand Down

0 comments on commit c7866c9

Please sign in to comment.