mirror of
https://github.com/wassname/ray.git
synced 2026-07-11 22:51:24 +08:00
[flaky test] Fix flaky checkpointing tests (#5791)
* Fix flaky checkpointing tests * Fix checkpoint test logic * Fix exception matching * timeout exception * Fix import * fix build
This commit is contained in:
@@ -14,7 +14,8 @@ import pytest
|
||||
import ray
|
||||
import ray.ray_constants as ray_constants
|
||||
from ray.tests.cluster_utils import Cluster
|
||||
from ray.tests.utils import run_string_as_driver_nonblocking
|
||||
from ray.tests.utils import (run_string_as_driver_nonblocking,
|
||||
RayTestTimeoutException)
|
||||
|
||||
|
||||
# This test checks that when a worker dies in the middle of a get, the plasma
|
||||
@@ -224,7 +225,8 @@ def test_worker_failed(ray_start_workers_separate_multinode):
|
||||
for pid in new_pids:
|
||||
pids.add(pid)
|
||||
if time.time() - start_time > 60:
|
||||
raise Exception("Timed out while waiting to get worker PIDs.")
|
||||
raise RayTestTimeoutException(
|
||||
"Timed out while waiting to get worker PIDs.")
|
||||
|
||||
@ray.remote
|
||||
def f(x):
|
||||
|
||||
Reference in New Issue
Block a user