Skip to content

Commit 97458ad

Browse files
LiviaMedeirosruyadorno
authored andcommitted
test: fix determining lower priority
PR-URL: #55908 Fixes: NixOS/nixpkgs#355919 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 2ca9f4b commit 97458ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-os.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ assert.ok(hostname.length > 0);
8484
// IBMi process priority is different.
8585
if (!common.isIBMi) {
8686
const { PRIORITY_BELOW_NORMAL, PRIORITY_LOW } = os.constants.priority;
87-
const LOWER_PRIORITY = os.getPriority() > PRIORITY_BELOW_NORMAL ? PRIORITY_BELOW_NORMAL : PRIORITY_LOW;
87+
// Priority means niceness: higher numeric value <=> lower priority
88+
const LOWER_PRIORITY = os.getPriority() < PRIORITY_BELOW_NORMAL ? PRIORITY_BELOW_NORMAL : PRIORITY_LOW;
8889
os.setPriority(LOWER_PRIORITY);
8990
const priority = os.getPriority();
9091
is.number(priority);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy