SetInterval up to 30s waitForMySQL

This commit is contained in:
Joan Sanchez 2018-01-08 15:35:37 +01:00
parent 6607b62f81
commit 23a7a1a707
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ gulp.task('services', () => {
gulp.task('servicesDev', callback => {
let isWindows = /^win/.test(process.platform);
let command = isWindows ? 'docker inspect dblocal |findstr Status' : 'docker inspect dblocal |grep Status';
let command = isWindows ? 'docker inspect dblocal | findstr Status' : 'docker inspect dblocal | grep Status';
gutil.env.env = 'test';
exec(command, (err, stdout, stderr) => {
let isNotRunning = !stdout.includes('running');
@ -174,7 +174,7 @@ gulp.task('e2e', callback => {
});
gulp.task('waitForMySQL', callback => {
let maxInterval = 15000;
let maxInterval = 30000;
let interval = 1000;
let timer = 0;
console.log('Waiting for MySQL init process...');