Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
test: add os setPriority, getPriority test coverage
  • Loading branch information
waelsy123 authored and aduh95 committed Sep 20, 2023
commit 40d821e84b1f4cc57925bd8b12d57770ed5a3f3b
6 changes: 6 additions & 0 deletions test/parallel/test-os.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 proiority = os.getPriority()
is.number(proiority)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace proiority with priority

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks I missed that

assert.ok(proiority === DUMMY_PRIORITY)

// On IBMi, os.uptime() returns 'undefined'
if (!common.isIBMi) {
const uptime = os.uptime();
Expand Down