mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-19 04:42:37 +00:00
fix test
This commit is contained in:
parent
68b3a1494a
commit
c1e3652af7
@ -30,7 +30,7 @@ def get_async_metric(node, metric):
|
|||||||
SELECT max(value)
|
SELECT max(value)
|
||||||
FROM (
|
FROM (
|
||||||
SELECT toStartOfInterval(event_time, toIntervalSecond(1)) AS t, avg(value) AS value
|
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}'
|
WHERE event_time >= now() - 60 AND metric = '{metric}'
|
||||||
GROUP BY t
|
GROUP BY t
|
||||||
)
|
)
|
||||||
@ -77,7 +77,7 @@ def test_system_wide_metrics(start_cluster):
|
|||||||
if node1.is_built_with_sanitizer():
|
if node1.is_built_with_sanitizer():
|
||||||
pytest.skip("Disabled for sanitizers")
|
pytest.skip("Disabled for sanitizers")
|
||||||
|
|
||||||
run_cpu_intensive_task(node1)
|
run_cpu_intensive_task(node2)
|
||||||
|
|
||||||
# /proc/loadavg - LoadAverage1
|
# /proc/loadavg - LoadAverage1
|
||||||
# /proc/uptime - OSUptime
|
# /proc/uptime - OSUptime
|
||||||
@ -90,5 +90,6 @@ def test_system_wide_metrics(start_cluster):
|
|||||||
"OSInterrupts",
|
"OSInterrupts",
|
||||||
"OSMemoryTotal",
|
"OSMemoryTotal",
|
||||||
]:
|
]:
|
||||||
node1_value = get_async_metric(node1, metric)
|
node2_value = get_async_metric(node2, metric)
|
||||||
assert float(node1_value) > 0
|
assert float(node2_value) > 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user