Skip to content

Commit

Permalink
squash: fix on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
LiviaMedeiros committed Nov 7, 2024
1 parent 07bb919 commit 88c836c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-os.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ assert.ok(hostname.length > 0);

// IBMi process priority is different.
if (!common.isIBMi) {
const LOWER_PRIORITY = Math.min(os.getPriority() + 5, 19);
const { PRIORITY_BELOW_NORMAL, PRIORITY_LOW } = os.constants.priority;
const LOWER_PRIORITY = os.getPriority() > PRIORITY_BELOW_NORMAL ? PRIORITY_BELOW_NORMAL : PRIORITY_LOW;
os.setPriority(LOWER_PRIORITY);
const priority = os.getPriority();
is.number(priority);
Expand Down

0 comments on commit 88c836c

Please sign in to comment.