From aabd91fa3ddad4302225afb18ae8ed3d510e7340 Mon Sep 17 00:00:00 2001 From: Thomas Countz Date: Thu, 26 Jun 2025 15:44:14 +0200 Subject: [PATCH] Update MySQL healthcheck query syntax in default options Arguments with spaces in healthchecks are incorrectly parsed in Podman. See: https://github.com/containers/podman/issues/26519 --- mysql/lib/testcontainers/mysql.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql/lib/testcontainers/mysql.rb b/mysql/lib/testcontainers/mysql.rb index 65b1723..e9581ef 100644 --- a/mysql/lib/testcontainers/mysql.rb +++ b/mysql/lib/testcontainers/mysql.rb @@ -127,7 +127,7 @@ def _configure end def _default_healthcheck_options - {test: ["/usr/bin/mysql", "--protocol=TCP", "--port=#{port}", "--user=#{username}", "--password=#{password}", database, "--silent", "--execute=SELECT 1;"], interval: 1, timeout: 5, retries: 5} + {test: ["/usr/bin/mysql", "--protocol=TCP", "--port=#{port}", "--user=#{username}", "--password=#{password}", database, "--silent", "--execute=SELECT(1);"], interval: 1, timeout: 5, retries: 5} end end end