Skip to content

Commit

Permalink
test: ensure that test priority is not higher than current priority
Browse files Browse the repository at this point in the history
  • Loading branch information
LiviaMedeiros committed Nov 6, 2024
1 parent 1aa7135 commit 5aedb44
Showing 1 changed file with 3 additions and 3 deletions.
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.max(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

0 comments on commit 5aedb44

Please sign in to comment.