Skip to content

Commit f5d7f04

Browse files
crispin-kizseta
authored andcommitted
fix: Fix python unit tests (feast-dev#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> Signed-off-by: Attila Toth <hello@attilatoth.dev>
1 parent db80a2b commit f5d7f04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdk/python/tests/unit/test_sql_registry.py

Lines changed: 1 addition & 1 deletion
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)