From eb89c567e2937a673bb8790d65c0e1cd2c9cbf95 Mon Sep 17 00:00:00 2001 From: SangBin Cho Date: Sun, 22 Nov 2020 00:32:18 -0800 Subject: [PATCH] [Metrics] Skip prom file test on Windows. (#12234) --- python/ray/tests/test_metrics_agent.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/ray/tests/test_metrics_agent.py b/python/ray/tests/test_metrics_agent.py index 408cd69f2..9386e4f1f 100644 --- a/python/ray/tests/test_metrics_agent.py +++ b/python/ray/tests/test_metrics_agent.py @@ -1,5 +1,6 @@ import json import pathlib +import platform from pprint import pformat from unittest.mock import MagicMock @@ -46,6 +47,8 @@ def test_prometheus_file_based_service_discovery(ray_start_cluster): loaded_json_data["targets"])) +@pytest.mark.skipif( + platform.system() == "Windows", reason="Failing on Windows.") def test_prome_file_discovery_run_by_dashboard(shutdown_only): ray.init(num_cpus=0) global_node = ray.worker._global_node