Skip to content

Commit e81684d

Browse files
authored
fix: Fix python unit tests (#3734)
* Fix regex log_string_to_wait_for to be more generic for changing versions of mysql Signed-off-by: Crispin Logan <crispin.logan@ki-insurance.com> * Add noqa otherwise flake incorrectly flags W605 Signed-off-by: Crispin Logan <crispin.logan@ki-insurance.com> --------- Signed-off-by: Crispin Logan <crispin.logan@ki-insurance.com>
1 parent 7bc7c47 commit e81684d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/python/tests/unit/test_sql_registry.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def mysql_registry():
9191
container.start()
9292

9393
# The log string uses '8.0.*' since the version might be changed as new Docker images are pushed.
94-
log_string_to_wait_for = "/usr/sbin/mysqld: ready for connections. Version: '8.0.*' socket: '/var/run/mysqld/mysqld.sock' port: 3306"
94+
log_string_to_wait_for = "/usr/sbin/mysqld: ready for connections. Version: '(\d+(\.\d+){1,2})' socket: '/var/run/mysqld/mysqld.sock' port: 3306" # noqa: W605
9595
waited = wait_for_logs(
9696
container=container,
9797
predicate=log_string_to_wait_for,

0 commit comments

Comments
 (0)