From 84b3ba3464a47099d0f8d30c8dd5a65020c4fc7d Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 7 Oct 2018 23:47:03 +0300 Subject: [PATCH] Improved test #3230 --- .../tests/queries/0_stateless/00725_memory_tracking.reference | 4 ++-- dbms/tests/queries/0_stateless/00725_memory_tracking.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dbms/tests/queries/0_stateless/00725_memory_tracking.reference b/dbms/tests/queries/0_stateless/00725_memory_tracking.reference index 5accb577786..9590230ceee 100644 --- a/dbms/tests/queries/0_stateless/00725_memory_tracking.reference +++ b/dbms/tests/queries/0_stateless/00725_memory_tracking.reference @@ -1,3 +1,3 @@ -1 +0 100000000 -1 +0 diff --git a/dbms/tests/queries/0_stateless/00725_memory_tracking.sql b/dbms/tests/queries/0_stateless/00725_memory_tracking.sql index a60d6f1a2b1..46d7948b1b3 100644 --- a/dbms/tests/queries/0_stateless/00725_memory_tracking.sql +++ b/dbms/tests/queries/0_stateless/00725_memory_tracking.sql @@ -1,3 +1,3 @@ -SELECT value > 0 FROM system.metrics WHERE metric = 'MemoryTracking'; +SELECT least(value, 0) FROM system.metrics WHERE metric = 'MemoryTracking'; SELECT length(range(100000000)); -SELECT value > 0 FROM system.metrics WHERE metric = 'MemoryTracking'; +SELECT least(value, 0) FROM system.metrics WHERE metric = 'MemoryTracking';