1. 04 1月, 2024 3 次提交
    • Iñaki Baz Castillo's avatar
      Make Node test independent (part 3) (#1297) · 913cf8fe
      由 Iñaki Baz Castillo 提交于
      - Done in `test-WebRtcServer` and `test-multiopus.ts`.
      - This helped fixing a bug since `rtpCapabilities` given to `router.canConsume()` were modified internally! Now we clone them.
      - Also avoid super long `import` lines in some random files.
      913cf8fe
    • Iñaki Baz Castillo's avatar
      Make Node tests independent (part 2) (#1296) · e51b47bd
      由 Iñaki Baz Castillo 提交于
      - Just done in `test-Router.ts` as POC.
      - Avoid declaring global variables in test files. Put them into `ctx: TestContext` instead.
      - Things in `ctx` should be const/frozen or reset in each `test()` execution.
      - So use a new `utils.deepFreeze()` function which freezes the object and would throw upon any  modification attempt.
      e51b47bd
    • Iñaki Baz Castillo's avatar
      Make Node tests independent (part 1) (#1295) · 71d8c11b
      由 Iñaki Baz Castillo 提交于
      - Make each `test()` independent of other tests in same file. The goal is that a failing test doesn't make other tests also fail.
      - For now just done in `test-Worker.ts` as a POC.
      - Rename `node/src/tests/` to `node/src/test/` for consistency and convention.
      - Make it possible to pass Jest command line args to `npm run test:node` script.
      71d8c11b
  2. 03 1月, 2024 10 次提交
  3. 02 1月, 2024 1 次提交
    • Iñaki Baz Castillo's avatar
      jest: ignore <rootDir>/target folder · a36f2c29
      由 Iñaki Baz Castillo 提交于
      This changes avoids warning like this:
      
      ```
      jest-haste-map: Haste module naming collision: mediasoup-worker-dev-tools
        The following files share their name; please adjust your hasteImpl:
          * <rootDir>/target/package/mediasoup-sys-0.7.1/scripts/package.json
          * <rootDir>/target/package/mediasoup-sys-0.7.2/scripts/package.json
      ```
      a36f2c29
  4. 01 1月, 2024 8 次提交
  5. 30 12月, 2023 5 次提交
  6. 29 12月, 2023 4 次提交
  7. 28 12月, 2023 1 次提交
  8. 27 12月, 2023 2 次提交
  9. 26 12月, 2023 2 次提交
  10. 23 12月, 2023 1 次提交
  11. 22 12月, 2023 3 次提交
    • José Luis Millán's avatar
      liburing zero copy (#1273) · 3cefa117
      由 José Luis Millán 提交于
      * liburing zero copy
      
      By pre-registering the send buffers we can make use of zero copy in
      order to avoid the kernel memcpy-ing the buffers.
      
      Send buffers are allocated by us and will be set as available once
      liburing notifies us about it.
      
      * handle feedback
      
      * handle ENOMEM error when registering buffers
      
      * fix error comparison
      
      * Cosmetic
      
      * Try to make compiled happy
      
      * Do not use errno variable name
      
      * Use error = -1 * err everywhere
      
      * remove uneeded '-1 *' to negate an int
      
      ---------
      Co-authored-by: 's avatarIñaki Baz Castillo <ibc@aliax.net>
      3cefa117
    • Iñaki Baz Castillo's avatar
      super cosmetic · 82ed1222
      由 Iñaki Baz Castillo 提交于
      82ed1222
    • Iñaki Baz Castillo's avatar
      invoke tasks.py: Fix 'xcode' task · 7f2a3d21
      由 Iñaki Baz Castillo 提交于
      7f2a3d21