Skip to content

Commit c19b2a7

Browse files
authored
test: add os setPriority, getPriority test coverage
PR-URL: #38771 Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent 783f64b commit c19b2a7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/parallel/test-os.js

+6
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ const hostname = os.hostname();
8181
is.string(hostname);
8282
assert.ok(hostname.length > 0);
8383

84+
const DUMMY_PRIORITY = 10;
85+
os.setPriority(DUMMY_PRIORITY);
86+
const priority = os.getPriority();
87+
is.number(priority);
88+
assert.strictEqual(priority, DUMMY_PRIORITY);
89+
8490
// On IBMi, os.uptime() returns 'undefined'
8591
if (!common.isIBMi) {
8692
const uptime = os.uptime();

0 commit comments

Comments
 (0)