Skip to content

Commit 40d821e

Browse files
waelsy123aduh95
authored andcommitted
test: add os setPriority, getPriority test coverage
1 parent cdad3d8 commit 40d821e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/parallel/test-os.js

Lines changed: 6 additions & 0 deletions
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 proiority = os.getPriority()
87+
is.number(proiority)
88+
assert.ok(proiority === DUMMY_PRIORITY)
89+
8490
// On IBMi, os.uptime() returns 'undefined'
8591
if (!common.isIBMi) {
8692
const uptime = os.uptime();

0 commit comments

Comments
 (0)