diff --git a/test/parallel/test-os.js b/test/parallel/test-os.js index f0f55fbe261946..d82f2ece3159a6 100644 --- a/test/parallel/test-os.js +++ b/test/parallel/test-os.js @@ -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();