This commit is contained in:
kssenii 2021-04-01 23:12:08 +00:00
parent c739176f7f
commit bcc37cd587

View File

@ -149,8 +149,8 @@ def test_mysql_client_exception(mysql_client, server_address):
-e "CREATE TABLE default.t1_remote_mysql AS mysql('127.0.0.1:10086','default','t1_local','default','');"
'''.format(host=server_address, port=server_port), demux=True)
assert stderr[0:300].decode() == "mysql: [Warning] Using a password on the command line interface can be insecure.\n" \
"ERROR 1000 (00000) at line 1: Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = Exception: Connections to all replicas failed: default@127.0.0.1:10086 as user default (version 21.4.1.1)\n"
assert stderr[0:258].decode() == "mysql: [Warning] Using a password on the command line interface can be insecure.\n" \
"ERROR 1000 (00000) at line 1: Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = Exception: Connections to all replicas failed: default@127.0.0.1:10086 as user default"
def test_mysql_affected_rows(mysql_client, server_address):