mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test: add os setPriority, getPriority test coverage
PR-URL: https://github.com/nodejs/node/pull/38771 Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
1 parent
ec323bbd99
commit
e49a573752
1 file changed
+6
@@ -81,6 +81,12 @@ const hostname = os.hostname();
|
||||
is.string(hostname);
|
||||
assert.ok(hostname.length > 0);
|
||||
|
||||
const DUMMY_PRIORITY = 10;
|
||||
os.setPriority(DUMMY_PRIORITY);
|
||||
const priority = os.getPriority();
|
||||
is.number(priority);
|
||||
assert.strictEqual(priority, DUMMY_PRIORITY);
|
||||
|
||||
// On IBMi, os.uptime() returns 'undefined'
|
||||
if (!common.isIBMi) {
|
||||
const uptime = os.uptime();
|
||||
|
||||
Reference in new issue
Block a user