Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 97458ad

Browse filesBrowse 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
Copy full SHA for 97458ad

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-os.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-os.js
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.