Skip to content

Commit 1a18034

Browse files
waelsy123ruyadorno
authored andcommitted
test: add os setPriority, getPriority test coverage
PR-URL: #38771 Reviewed-By: Darshan Sen <[email protected]>
1 parent 9363179 commit 1a18034

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
@@ -81,6 +81,12 @@ const hostname = os.hostname();
8181
is.string(hostname);
8282
assert.ok(hostname.length>0);
8383

84+
constDUMMY_PRIORITY=10;
85+
os.setPriority(DUMMY_PRIORITY);
86+
constpriority=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
constuptime=os.uptime();

0 commit comments

Comments
(0)