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 3519d74

Browse filesBrowse files
juanarbolRafaelGSS
authored andcommitted
test: improve test coverage for os package
PR-URL: #44959 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 5fce8e3 commit 3519d74
Copy full SHA for 3519d74

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-os-process-priority.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-os-process-priority.js
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,14 @@ for (let i = PRIORITY_HIGHEST; i <= PRIORITY_LOW; i++) {
109109
checkPriority(process.pid, i);
110110
}
111111

112+
{
113+
assert.throws(() => { os.getPriority(-1); }, {
114+
code: 'ERR_SYSTEM_ERROR',
115+
message: /A system error occurred: uv_os_getpriority returned /,
116+
name: 'SystemError'
117+
});
118+
}
119+
112120

113121
function checkPriority(pid, expected) {
114122
const priority = os.getPriority(pid);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.