We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
os
1 parent d55a66f commit cc09876Copy full SHA for cc09876
test/parallel/test-os-process-priority.js
@@ -109,6 +109,14 @@ for (let i = PRIORITY_HIGHEST; i <= PRIORITY_LOW; i++) {
109
checkPriority(process.pid, i);
110
}
111
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
+
120
121
function checkPriority(pid, expected) {
122
const priority = os.getPriority(pid);
0 commit comments