mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Update test.py
This commit is contained in:
parent
4a92ad11ec
commit
d941c483b2
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user