From 975c5aca8ead9eac9aab820eef35eb8345f1ca26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Baz=20Castillo?= Date: Fri, 9 Aug 2024 19:13:07 +0200 Subject: [PATCH] make some existing tests disable liburing --- node/src/test/test-Worker.ts | 1 + node/src/test/test-node-sctp.ts | 2 +- rust/src/router/tests.rs | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/node/src/test/test-Worker.ts b/node/src/test/test-Worker.ts index 78fa5740a6..b9e9a1ec16 100644 --- a/node/src/test/test-Worker.ts +++ b/node/src/test/test-Worker.ts @@ -63,6 +63,7 @@ test('createWorker() succeeds', async () => { dtlsCertificateFile: path.join(__dirname, 'data', 'dtls-cert.pem'), dtlsPrivateKeyFile: path.join(__dirname, 'data', 'dtls-key.pem'), libwebrtcFieldTrials: 'WebRTC-Bwe-AlrLimitedBackoff/Disabled/', + disableLiburing: true, appData: { foo: 456 }, }); diff --git a/node/src/test/test-node-sctp.ts b/node/src/test/test-node-sctp.ts index 7e944661ea..e344c1a484 100644 --- a/node/src/test/test-node-sctp.ts +++ b/node/src/test/test-node-sctp.ts @@ -23,7 +23,7 @@ beforeEach(async () => { // Set node-sctp default PMTU to 1200. sctp.defaults({ PMTU: 1200 }); - ctx.worker = await mediasoup.createWorker(); + ctx.worker = await mediasoup.createWorker({ disableLiburing: true }); ctx.router = await ctx.worker.createRouter(); ctx.plainTransport = await ctx.router.createPlainTransport({ // https://github.com/nodejs/node/issues/14900. diff --git a/rust/src/router/tests.rs b/rust/src/router/tests.rs index e36d1c46c5..9a477321e2 100644 --- a/rust/src/router/tests.rs +++ b/rust/src/router/tests.rs @@ -28,6 +28,12 @@ fn worker_close_event() { let router = worker .create_router(RouterOptions::default()) + .create_worker({ + let mut settings = WorkerSettings::default(); + settings.enable_liburing = false; + + settings + }) .await .expect("Failed to create router");