Skip to content

Commit

Permalink
make some existing tests disable liburing
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Aug 9, 2024
1 parent 80fbae0 commit 975c5ac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions node/src/test/test-Worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
});

Expand Down
2 changes: 1 addition & 1 deletion node/src/test/test-node-sctp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 6 additions & 0 deletions rust/src/router/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 975c5ac

Please sign in to comment.