percona-server: wait 3 seconds to mysql is up

Signed-off-by: Jaehoon You <teslamint@gmail.com>
master
Jaehoon You 2017-06-14 12:19:41 +09:00 committed by Alex Dunn
parent 8676ee2022
commit 987a2b0e78
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ class PerconaServer < Formula
pid = fork do
exec "#{opt_bin}/mysqld_safe", "--datadir=#{testpath}/mysql", "--user=#{ENV["USER"]}", "--bind-address=127.0.0.1", "--port=3307"
end
sleep 1
sleep 3
system "#{bin}/mysql", "--verbose", "--port=3307", "--user=root", "--execute=source #{testpath/"mysql_test.sql"}"
ensure
system "#{bin}/mysqladmin", "shutdown", "--user=root", "--port=3307"