From 987a2b0e787264a9502261b23ccda1bbb004e9a5 Mon Sep 17 00:00:00 2001 From: Jaehoon You Date: Wed, 14 Jun 2017 12:19:41 +0900 Subject: [PATCH] percona-server: wait 3 seconds to mysql is up Signed-off-by: Jaehoon You --- Formula/percona-server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/percona-server.rb b/Formula/percona-server.rb index 8e9f65fb252..c1eb2495135 100644 --- a/Formula/percona-server.rb +++ b/Formula/percona-server.rb @@ -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"