From 1d8cc6179dbdde654abb4f08f0ee0f6e89065cf8 Mon Sep 17 00:00:00 2001 From: Rafael Gonzaga Date: Sat, 14 Dec 2024 12:06:38 -0300 Subject: [PATCH] test: use --permission over --experimental-permission PR-URL: https://github.com/nodejs/node/pull/56239 Reviewed-By: Marco Ippolito Reviewed-By: James M Snell Reviewed-By: Zeyu "Alex" Yang Reviewed-By: Yagiz Nizipli Reviewed-By: Luigi Pinca --- test/parallel/test-permission-sqlite-load-extension.js | 2 +- test/sqlite/test-sqlite-extensions.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-permission-sqlite-load-extension.js b/test/parallel/test-permission-sqlite-load-extension.js index ff13d05c84626e..28d750d0cd06b6 100644 --- a/test/parallel/test-permission-sqlite-load-extension.js +++ b/test/parallel/test-permission-sqlite-load-extension.js @@ -8,7 +8,7 @@ const db = new sqlite.DatabaseSync(':memory:', { allowExtension: true }); db.loadExtension('nonexistent');`.replace(/\n/g, ' '); childProcess.exec( - `${process.execPath} --experimental-permission -e "${code}"`, + `${process.execPath} --permission -e "${code}"`, {}, common.mustCall((err, _, stderr) => { assert.strictEqual(err.code, 1); diff --git a/test/sqlite/test-sqlite-extensions.mjs b/test/sqlite/test-sqlite-extensions.mjs index 128a4fa0b29d24..0e0acf2dc33d30 100644 --- a/test/sqlite/test-sqlite-extensions.mjs +++ b/test/sqlite/test-sqlite-extensions.mjs @@ -93,7 +93,7 @@ test('should throw error if permission is enabled', async () => { const db = new sqlite.DatabaseSync(':memory:', { allowExtension: true });`; return new Promise((resolve) => { childProcess.exec( - `${cmd} --experimental-permission -e "${code}"`, + `${cmd} --permission -e "${code}"`, { ...opts, },