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)
def run(self) -> None: while True: future = self.work_queue.get() check_result = check_health(self.gcs_address) future.set_result(check_result)
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)