From da173d6092791b2957646da960ca2a014c17ac67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Fri, 18 Jan 2019 16:16:15 +0800 Subject: [PATCH] try fix test error (#3424) * try fix test error * try fix ci error in windows --- jest-puppeteer.config.js | 1 - tests/run-tests.js | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/jest-puppeteer.config.js b/jest-puppeteer.config.js index d720fc2b..58c2b54d 100644 --- a/jest-puppeteer.config.js +++ b/jest-puppeteer.config.js @@ -9,7 +9,6 @@ module.exports = { '--no-first-run', '--no-sandbox', '--no-zygote', - '--single-process', ], }, }; diff --git a/tests/run-tests.js b/tests/run-tests.js index 02c42b08..5735ada4 100644 --- a/tests/run-tests.js +++ b/tests/run-tests.js @@ -24,7 +24,11 @@ startServer.on('exit', () => { console.log('Starting development server for e2e tests...'); startServer.stdout.on('data', data => { console.log(data.toString()); - if (!once && data.toString().indexOf('Compiled successfully') >= 0) { + // hack code , wait umi + if ( + (!once && data.toString().indexOf('Compiled successfully') >= 0) || + data.toString().indexOf('Theme generated successfully') >= 0 + ) { // eslint-disable-next-line once = true; console.log('Development server is started, ready to run tests.'); -- GitLab