diff --git a/python/ray/tests/test_basic_5.py b/python/ray/tests/test_basic_5.py index 20aee63e2983..0d88f03ce0b5 100644 --- a/python/ray/tests/test_basic_5.py +++ b/python/ray/tests/test_basic_5.py @@ -15,6 +15,7 @@ from ray._private.test_utils import ( run_string_as_driver, wait_for_pid_to_exit, + client_test_enabled, ) logger = logging.getLogger(__name__) @@ -362,6 +363,7 @@ def verify_imports(latch): ray.get(futures) +@pytest.mark.skipif(client_test_enabled(), reason="only server mode") def test_gcs_port_env(): try: with unittest.mock.patch.dict(os.environ):