Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/parallel/test-os.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ assert.ok(hostname.length > 0);

// IBMi process priority is different.
if (!common.isIBMi) {
const DUMMY_PRIORITY = 10;
os.setPriority(DUMMY_PRIORITY);
const LOWER_PRIORITY = Math.min(os.getPriority() + 5, 19);
os.setPriority(LOWER_PRIORITY);
const priority = os.getPriority();
is.number(priority);
assert.strictEqual(priority, DUMMY_PRIORITY);
assert.strictEqual(priority, LOWER_PRIORITY);
}

// On IBMi, os.uptime() returns 'undefined'
Expand Down