Skip to content

Commit aabd91f

Browse files
committed
Update MySQL healthcheck query syntax in default options
Arguments with spaces in healthchecks are incorrectly parsed in Podman. See: containers/podman#26519
1 parent f7a5305 commit aabd91f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mysql/lib/testcontainers/mysql.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def _configure
127127
end
128128

129129
def _default_healthcheck_options
130-
{test: ["/usr/bin/mysql", "--protocol=TCP", "--port=#{port}", "--user=#{username}", "--password=#{password}", database, "--silent", "--execute=SELECT 1;"], interval: 1, timeout: 5, retries: 5}
130+
{test: ["/usr/bin/mysql", "--protocol=TCP", "--port=#{port}", "--user=#{username}", "--password=#{password}", database, "--silent", "--execute=SELECT(1);"], interval: 1, timeout: 5, retries: 5}
131131
end
132132
end
133133
end

0 commit comments

Comments
 (0)