File tree 1 file changed +18
-11
lines changed
1 file changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -54,17 +54,24 @@ it('has help command', done => {
54
54
} , done ) ;
55
55
} ) ;
56
56
57
- it ( 'has version command' , done => {
58
- Rx . combineLatest ( [ run ( '--version' ) . close , run ( '-V' ) . close , run ( '-v' ) . close ] ) . subscribe (
59
- events => {
60
- expect ( events [ 0 ] [ 0 ] ) . toBe ( 0 ) ;
61
- expect ( events [ 1 ] [ 0 ] ) . toBe ( 0 ) ;
62
- expect ( events [ 2 ] [ 0 ] ) . toBe ( 0 ) ;
63
- done ( ) ;
64
- } ,
65
- done
66
- ) ;
67
- } ) ;
57
+ // Increasing timeout for this test as it is sometimes exceeded
58
+ // in the CI when running on macOS (default is 5000ms)
59
+ const increasedTimeout = 10000 ;
60
+ it (
61
+ 'has version command' ,
62
+ done => {
63
+ Rx . combineLatest ( [ run ( '--version' ) . close , run ( '-V' ) . close , run ( '-v' ) . close ] ) . subscribe (
64
+ events => {
65
+ expect ( events [ 0 ] [ 0 ] ) . toBe ( 0 ) ;
66
+ expect ( events [ 1 ] [ 0 ] ) . toBe ( 0 ) ;
67
+ expect ( events [ 2 ] [ 0 ] ) . toBe ( 0 ) ;
68
+ done ( ) ;
69
+ } ,
70
+ done
71
+ ) ;
72
+ } ,
73
+ increasedTimeout
74
+ ) ;
68
75
69
76
describe ( 'exiting conditions' , ( ) => {
70
77
it ( 'is of success by default when running successful commands' , done => {
You can’t perform that action at this time.
0 commit comments