From c1e3652af71af10ab12158340e7e9ac349be3089 Mon Sep 17 00:00:00 2001 From: Nikita Taranov Date: Mon, 16 Dec 2024 21:28:19 +0100 Subject: [PATCH] fix test --- tests/integration/test_async_metrics_in_cgroup/test.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/integration/test_async_metrics_in_cgroup/test.py b/tests/integration/test_async_metrics_in_cgroup/test.py index babde8137ff..5365011444e 100644 --- a/tests/integration/test_async_metrics_in_cgroup/test.py +++ b/tests/integration/test_async_metrics_in_cgroup/test.py @@ -30,7 +30,7 @@ def get_async_metric(node, metric): SELECT max(value) FROM ( SELECT toStartOfInterval(event_time, toIntervalSecond(1)) AS t, avg(value) AS value - FROM system.asynchronous_metric_log + FROM system.asynchronous_metric_log WHERE event_time >= now() - 60 AND metric = '{metric}' GROUP BY t ) @@ -77,7 +77,7 @@ def test_system_wide_metrics(start_cluster): if node1.is_built_with_sanitizer(): pytest.skip("Disabled for sanitizers") - run_cpu_intensive_task(node1) + run_cpu_intensive_task(node2) # /proc/loadavg - LoadAverage1 # /proc/uptime - OSUptime @@ -90,5 +90,6 @@ def test_system_wide_metrics(start_cluster): "OSInterrupts", "OSMemoryTotal", ]: - node1_value = get_async_metric(node1, metric) - assert float(node1_value) > 0 + node2_value = get_async_metric(node2, metric) + assert float(node2_value) > 0 +