File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ var chalk = require('chalk');
11
11
var Promise = require ( 'bluebird' ) ;
12
12
var fork = require ( './lib/fork' ) ;
13
13
var 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
+ }
14
19
15
20
// Bluebird specific
16
21
Promise . longStackTraces ( ) ;
@@ -58,7 +63,7 @@ function error(error) {
58
63
59
64
setTimeout ( function ( ) {
60
65
process . exit ( 1 ) ;
61
- } , 0 ) ;
66
+ } , delayBeforeExit ) ;
62
67
}
63
68
64
69
function prefixTitle ( file ) {
@@ -181,7 +186,7 @@ function exit(results) {
181
186
// timeout required to correctly flush stderr on Node 0.10 Windows
182
187
setTimeout ( function ( ) {
183
188
process . exit ( failed > 0 || unhandledRejectionCount > 0 || uncaughtExceptionCount > 0 ? 1 : 0 ) ;
184
- } , 0 ) ;
189
+ } , delayBeforeExit ) ;
185
190
}
186
191
187
192
function init ( files ) {
You can’t perform that action at this time.
0 commit comments