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: #38771
Reviewed-By: Darshan Sen <[email protected]>
  • Loading branch information
waelsy123 authored and ruyadorno committed Sep 28, 2023
1 parent 9363179 commit 1a18034
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 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 1a18034

Please sign in to comment.