Skip to content

Commit

Permalink
Fix timeout issue when testing on macOS (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
paescuj committed Jun 21, 2022
1 parent 242dd5b commit 29b18f8
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions bin/concurrently.spec.ts
Expand Up @@ -54,17 +54,24 @@ it('has help command', done => {
}, done);
});

it('has version command', done => {
Rx.combineLatest([run('--version').close, run('-V').close, run('-v').close]).subscribe(
events => {
expect(events[0][0]).toBe(0);
expect(events[1][0]).toBe(0);
expect(events[2][0]).toBe(0);
done();
},
done
);
});
// Increasing timeout for this test as it is sometimes exceeded
// in the CI when running on macOS (default is 5000ms)
const increasedTimeout = 10000;
it(
'has version command',
done => {
Rx.combineLatest([run('--version').close, run('-V').close, run('-v').close]).subscribe(
events => {
expect(events[0][0]).toBe(0);
expect(events[1][0]).toBe(0);
expect(events[2][0]).toBe(0);
done();
},
done
);
},
increasedTimeout
);

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

0 comments on commit 29b18f8

Please sign in to comment.