CI tests fail in GitHub macOS machines
ibc opened this issue · comments
Iñaki Baz Castillo commented
https://github.com/versatica/mediasoup-client-aiortc/actions/runs/6198433170/job/16828854258
All tests fail, so this is not about getUserMedia()
calls. In fact, the very first test fails with timeout:
test('create a Worker succeeds', async () =>
{
worker = await createWorker({ logLevel: 'debug' });
expect(typeof worker.pid).toBe('number');
expect(worker.closed).toBe(false);
}, 5000);
● create a Worker succeeds
thrown: "Exceeded timeout of 5000 ms for a test.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
17 | let dataConsumer: mediasoupClientTypes.DataConsumer;
18 |
> 19 | test('create a Worker succeeds', async () =>
| ^
20 | {
21 | worker = await createWorker({ logLevel: 'debug' });
22 |
at Object.<anonymous> (src/tests/test.ts:19:1)
Iñaki Baz Castillo commented
Fixed by increasing test timeouts to 20s: 7c0930e