Skip to content

Commit bcca0dd

Browse files
committed
test: add os setPriority, getPriority test coverage
1 parent 7afa7b9 commit bcca0dd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/parallel/test-os.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ const hostname = os.hostname();
8585
is.string(hostname);
8686
assert.ok(hostname.length > 0);
8787

88+
const DUMMY_PRIORITY = 10
89+
os.setPriority(DUMMY_PRIORITY)
90+
const proiority = os.getPriority()
91+
is.number(proiority)
92+
assert.ok(proiority === DUMMY_PRIORITY)
93+
8894
// On IBMi, os.uptime() returns 'undefined'
8995
if (!common.isIBMi) {
9096
const uptime = os.uptime();

0 commit comments

Comments
 (0)