Skip to content

Commit 493e16c

Browse files
LiviaMedeirosaduh95
authored andcommitted
test: fix determining lower priority
PR-URL: #55908Fixes: NixOS/nixpkgs#355919 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 497a9ae commit 493e16c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎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-
constLOWER_PRIORITY=os.getPriority()>PRIORITY_BELOW_NORMAL ? PRIORITY_BELOW_NORMAL : PRIORITY_LOW;
87+
// Priority means niceness: higher numeric value <=> lower priority
88+
constLOWER_PRIORITY=os.getPriority()<PRIORITY_BELOW_NORMAL ? PRIORITY_BELOW_NORMAL : PRIORITY_LOW;
8889
os.setPriority(LOWER_PRIORITY);
8990
constpriority=os.getPriority();
9091
is.number(priority);

0 commit comments

Comments
 (0)