From d941c483b2923c378536631fc479c06f557a7e44 Mon Sep 17 00:00:00 2001 From: Ivan Blinkov Date: Wed, 27 May 2020 11:25:36 +0300 Subject: [PATCH] Update test.py --- tests/integration/test_system_queries/test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/test_system_queries/test.py b/tests/integration/test_system_queries/test.py index 9397cd20ec7..6f36a13b184 100644 --- a/tests/integration/test_system_queries/test.py +++ b/tests/integration/test_system_queries/test.py @@ -97,6 +97,7 @@ def test_SYSTEM_FLUSH_LOGS(started_cluster): instance = cluster.instances['ch1'] instance.query(''' SET log_queries = 0; + SYSTEM FLUSH LOGS; TRUNCATE TABLE system.query_log; ''') for i in range(4): @@ -104,13 +105,13 @@ def test_SYSTEM_FLUSH_LOGS(started_cluster): # by expiration of flush_interval_millisecond and test probable race condition. time.sleep(0.5) result = instance.query(''' - SET log_queries = 1; SELECT 1 FORMAT Null; SET log_queries = 0; SYSTEM FLUSH LOGS; SELECT count() FROM system.query_log;''') instance.query(''' SET log_queries = 0; + SYSTEM FLUSH LOGS; TRUNCATE TABLE system.query_log; ''') assert TSV(result) == TSV('4')