Skip to content

Commit 29b18f8

Browse files
authoredJun 21, 2022
Fix timeout issue when testing on macOS (#332)
1 parent 242dd5b commit 29b18f8

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed
 

‎bin/concurrently.spec.ts

+18-11
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,24 @@ it('has help command', done => {
5454
}, done);
5555
});
5656

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+
);
6875

6976
describe('exiting conditions', () => {
7077
it('is of success by default when running successful commands', done => {

0 commit comments

Comments
 (0)
Please sign in to comment.