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 <raisinten@gmail.com>
  • Loading branch information
waelsy123 authored Sep 27, 2023
1 parent 783f64b commit c19b2a7
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 c19b2a7

Please sign in to comment.