versatica / mediasoup-client-aiortc

mediasoup-client handler for aiortc Python library
https://mediasoup.org
ISC License
56 stars 30 forks source link

CI tests fail in GitHub macOS machines #27

Closed ibc closed 1 year ago

ibc commented 1 year ago

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)
ibc commented 1 year ago

Fixed by increasing test timeouts to 20s: https://github.com/versatica/mediasoup-client-aiortc/commit/7c0930e3676d407d7f18c09792464919ca4de8e3