Пример #1
0
def test_check_health_version_check(shutdown_only):
    with mock.patch("ray.__version__", "FOO-VERSION"):
        conn = ray.init()
        addr = conn.address_info["address"]
        assert check_health(addr, skip_version_check=True)
        with pytest.raises(RuntimeError):
            check_health(addr)
Пример #2
0
 def run(self) -> None:
     while True:
         future = self.work_queue.get()
         check_result = check_health(self.gcs_address)
         future.set_result(check_result)
Пример #3
0
def test_check_health(shutdown_only):
    assert not check_health("127.0.0.1:8888")

    conn = ray.init()
    addr = conn.address_info["address"]
    assert check_health(addr)