diff --git a/test/parallel/test-os.js b/test/parallel/test-os.js index 5b40af9814571a..d8fb5c91188152 100644 --- a/test/parallel/test-os.js +++ b/test/parallel/test-os.js @@ -85,11 +85,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) {