From e5da2d4086d33505ad3b181baba744d01e1191bf Mon Sep 17 00:00:00 2001 From: taichong Date: Fri, 30 Oct 2020 09:31:45 +0800 Subject: [PATCH] print mysql result for test --- .../test_materialize_mysql_database/materialize_with_ddl.py | 1 + tests/integration/test_materialize_mysql_database/test.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/integration/test_materialize_mysql_database/materialize_with_ddl.py b/tests/integration/test_materialize_mysql_database/materialize_with_ddl.py index 8c9256cb1c7..9ea4cfbda00 100644 --- a/tests/integration/test_materialize_mysql_database/materialize_with_ddl.py +++ b/tests/integration/test_materialize_mysql_database/materialize_with_ddl.py @@ -477,6 +477,7 @@ def err_sync_user_privs_with_materialize_mysql_database(clickhouse_node, mysql_n # wait MaterializeMySQL read binlog events check_query(clickhouse_node, "SELECT count() FROM test_database.test_table_1 FORMAT TSV", "6\n", 30, 5) + print mysql result for test mysql_node.query("INSERT INTO test_database.test_table_1 VALUES(7);") check_query(clickhouse_node, "SELECT count() FROM test_database.test_table_1 FORMAT TSV", "7\n") clickhouse_node.query("DROP DATABASE test_database;") diff --git a/tests/integration/test_materialize_mysql_database/test.py b/tests/integration/test_materialize_mysql_database/test.py index 543ff7e1bdd..72310ea30cb 100644 --- a/tests/integration/test_materialize_mysql_database/test.py +++ b/tests/integration/test_materialize_mysql_database/test.py @@ -184,3 +184,4 @@ def test_materialize_database_err_sync_user_privs_8_0(started_cluster, started_m print((clickhouse_node.query( "select '\n', thread_id, query_id, arrayStringConcat(arrayMap(x -> concat(demangle(addressToSymbol(x)), '\n ', addressToLine(x)), trace), '\n') AS sym from system.stack_trace format TSVRaw"))) raise +