Skip to content

Commit

Permalink
fix: Switch mysql log string to use regex (#2976)
Browse files Browse the repository at this point in the history
Switch log string to use regex

Signed-off-by: Felix Wang <wangfelix98@gmail.com>
  • Loading branch information
felixwang9817 committed Jul 27, 2022
1 parent 26f6b69 commit 5edf4b0
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -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,
Expand Down

0 comments on commit 5edf4b0

Please sign in to comment.