diff --git a/test/parallel/test-os.js b/test/parallel/test-os.js index 4730a99c930b54..d82f2ece3159a6 100644 --- a/test/parallel/test-os.js +++ b/test/parallel/test-os.js @@ -81,11 +81,11 @@ 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.ok(priority === DUMMY_PRIORITY) +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) {