Skip to content

Commit

Permalink
[misc] add 2 seconds wait when stopping database to avoid some CI err…
Browse files Browse the repository at this point in the history
…or sometime
  • Loading branch information
rusher committed Nov 18, 2015
1 parent 28aadb5 commit 7900eb9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis/before_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ sudo mysql -u root -e "SET GLOBAL innodb_fast_shutdown = 1"
sudo mysql -u root -e "update mysql.user set plugin = 'mysql_native_password' where User = 'root' and Host = 'localhost'"

sudo service mysql stop
#Adding sleep time for clean shutdown
if [ "x$MYSQL_VERSION" != "x" ]
then
sleep 2
fi
sudo rm -f /var/lib/mysql/ib_logfile*
sudo service mysql start

Expand Down

0 comments on commit 7900eb9

Please sign in to comment.