From 5edf4b0332a298a0e172dd58e0a627efe5705eec Mon Sep 17 00:00:00 2001 From: Felix Wang Date: Wed, 27 Jul 2022 14:59:05 -0700 Subject: [PATCH] fix: Switch mysql log string to use regex (#2976) Switch log string to use regex Signed-off-by: Felix Wang --- sdk/python/tests/integration/registration/test_sql_registry.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/python/tests/integration/registration/test_sql_registry.py b/sdk/python/tests/integration/registration/test_sql_registry.py index 23a19f664a..286b1abd21 100644 --- a/sdk/python/tests/integration/registration/test_sql_registry.py +++ b/sdk/python/tests/integration/registration/test_sql_registry.py @@ -87,7 +87,8 @@ def mysql_registry(): container.start() - log_string_to_wait_for = "/usr/sbin/mysqld: ready for connections. Version: '8.0.29' socket: '/var/run/mysqld/mysqld.sock' port: 3306" + # The log string uses '8.0.*' since the version might be changed as new Docker images are pushed. + log_string_to_wait_for = "/usr/sbin/mysqld: ready for connections. Version: '8.0.*' socket: '/var/run/mysqld/mysqld.sock' port: 3306" waited = wait_for_logs( container=container, predicate=log_string_to_wait_for,