From 56d8ca3f076cadbe2d801c8e061ca678de97ecc7 Mon Sep 17 00:00:00 2001 From: Wael Date: Mon, 24 May 2021 19:28:59 +0200 Subject: [PATCH] Update test/parallel/test-os.js Co-authored-by: Darshan Sen --- test/parallel/test-os.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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) {