File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ var chalk = require('chalk');
1111var Promise = require ( 'bluebird' ) ;
1212var fork = require ( './lib/fork' ) ;
1313var log = require ( './lib/logger' ) ;
14+ var delayBeforeExit = 0 ;
15+
16+ if ( process . env . APPVEYOR && ! parseInt ( process . version . slice ( 1 ) , 10 ) > 0 ) {
17+ delayBeforeExit = 500 ;
18+ }
1419
1520// Bluebird specific
1621Promise . longStackTraces ( ) ;
@@ -58,7 +63,7 @@ function error(error) {
5863
5964 setTimeout ( function ( ) {
6065 process . exit ( 1 ) ;
61- } , 0 ) ;
66+ } , delayBeforeExit ) ;
6267}
6368
6469function prefixTitle ( file ) {
@@ -181,7 +186,7 @@ function exit(results) {
181186 // timeout required to correctly flush stderr on Node 0.10 Windows
182187 setTimeout ( function ( ) {
183188 process . exit ( failed > 0 || unhandledRejectionCount > 0 || uncaughtExceptionCount > 0 ? 1 : 0 ) ;
184- } , 0 ) ;
189+ } , delayBeforeExit ) ;
185190}
186191
187192function init ( files ) {
You can’t perform that action at this time.
0 commit comments