From ff54b4c82b4da07bf5b8bba296955a41f0f5b7b2 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 30 May 2020 21:43:14 +0300 Subject: [PATCH] Retain some parts of the modification --- tests/integration/test_part_log_table/test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration/test_part_log_table/test.py b/tests/integration/test_part_log_table/test.py index a97c8cf7b3a..418c00d147b 100644 --- a/tests/integration/test_part_log_table/test.py +++ b/tests/integration/test_part_log_table/test.py @@ -21,7 +21,7 @@ def test_config_without_part_log(start_cluster): node1.query("CREATE TABLE test_table(word String, value UInt64) ENGINE=MergeTree() ORDER BY value") assert "Table system.part_log doesn't exist" in node1.query_and_get_error("SELECT * FROM system.part_log") node1.query("INSERT INTO test_table VALUES ('name', 1)") - time.sleep(10) + node1.query("SYSTEM FLUSH LOGS") assert "Table system.part_log doesn't exist" in node1.query_and_get_error("SELECT * FROM system.part_log") def test_config_with_standard_part_log(start_cluster): @@ -29,7 +29,7 @@ def test_config_with_standard_part_log(start_cluster): node2.query("CREATE TABLE test_table(word String, value UInt64) ENGINE=MergeTree() Order by value") assert "Table system.part_log doesn't exist" in node2.query_and_get_error("SELECT * FROM system.part_log") node2.query("INSERT INTO test_table VALUES ('name', 1)") - time.sleep(10) + node1.query("SYSTEM FLUSH LOGS") assert node2.query("SELECT * FROM system.part_log") != "" def test_config_with_non_standard_part_log(start_cluster): @@ -37,6 +37,6 @@ def test_config_with_non_standard_part_log(start_cluster): node3.query("CREATE TABLE test_table(word String, value UInt64) ENGINE=MergeTree() Order by value") assert "Table system.table_name doesn't exist" in node3.query_and_get_error("SELECT * FROM system.table_name") node3.query("INSERT INTO test_table VALUES ('name', 1)") - time.sleep(10) + node1.query("SYSTEM FLUSH LOGS") assert node3.query("SELECT * FROM system.table_name") != ""