SetInterval up to 30s waitForMySQL
This commit is contained in:
parent
6607b62f81
commit
23a7a1a707
|
@ -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...');
|
||||
|
|
Loading…
Reference in New Issue