Unverified Commit da173d60 authored by 陈帅's avatar 陈帅 Committed by GitHub

try fix test error (#3424)

* try fix test error

* try fix ci error in windows
parent 19eac941
...@@ -9,7 +9,6 @@ module.exports = { ...@@ -9,7 +9,6 @@ module.exports = {
'--no-first-run', '--no-first-run',
'--no-sandbox', '--no-sandbox',
'--no-zygote', '--no-zygote',
'--single-process',
], ],
}, },
}; };
...@@ -24,7 +24,11 @@ startServer.on('exit', () => { ...@@ -24,7 +24,11 @@ startServer.on('exit', () => {
console.log('Starting development server for e2e tests...'); console.log('Starting development server for e2e tests...');
startServer.stdout.on('data', data => { startServer.stdout.on('data', data => {
console.log(data.toString()); 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 // eslint-disable-next-line
once = true; once = true;
console.log('Development server is started, ready to run tests.'); console.log('Development server is started, ready to run tests.');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment