Skip to content

Commit

Permalink
test: use --permission over --experimental-permission
Browse files Browse the repository at this point in the history
PR-URL: #56239
Reviewed-By: Marco Ippolito <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Zeyu "Alex" Yang <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
RafaelGSS authored and aduh95 committed Dec 18, 2024
1 parent cc7a7c3 commit 1d8cc61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/parallel/test-permission-sqlite-load-extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion test/sqlite/test-sqlite-extensions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 1d8cc61

Please sign in to comment.