File tree 1 file changed +10
-2
lines changed 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,20 @@ var fork = require('child_process').fork;
11
11
var redis = config . redis ;
12
12
var client ;
13
13
14
+ // Currently Travis Windows builds hang after completing if any processes are still running,
15
+ // we shutdown redis-server after all tests complete (can't do this in a
16
+ // `after_script` Travis hook as it hangs before the `after` life cycles)
17
+ // to workaround the issue.
18
+ //
19
+ // See: https://github.com/travis-ci/travis-ci/issues/8082
14
20
after ( function ( done ) {
15
21
if ( process . platform !== 'win32' || ! process . env . CI ) {
16
22
return done ( ) ;
17
23
}
18
- require ( 'cross-spawn' ) . sync ( 'redis-server' , [ '--service-stop' ] , { } ) ;
19
- done ( ) ;
24
+ process . nextTick ( function ( ) {
25
+ require ( 'cross-spawn' ) . sync ( 'redis-server' , [ '--service-stop' ] , { } ) ;
26
+ done ( ) ;
27
+ } ) ;
20
28
} ) ;
21
29
22
30
describe ( 'The node_redis client' , function ( ) {
You can’t perform that action at this time.
0 commit comments