Skip to content

Commit

Permalink
test: add os setPriority, getPriority test coverage
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node#38771
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
sercher committed Apr 25, 2024
1 parent b4f4f73 commit 20457ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions graal-nodejs/test/parallel/test-os.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ const hostname = os.hostname();
is.string(hostname);
assert.ok(hostname.length > 0);

const DUMMY_PRIORITY = 10;
os.setPriority(DUMMY_PRIORITY);
const priority = os.getPriority();
is.number(priority);
assert.strictEqual(priority, DUMMY_PRIORITY);

// On IBMi, os.uptime() returns 'undefined'
if (!common.isIBMi) {
const uptime = os.uptime();
Expand Down

0 comments on commit 20457ac

Please sign in to comment.