From 202abc34b01117c3d53d7719253b29417f3ac15f Mon Sep 17 00:00:00 2001 From: Harshitha KP Date: Mon, 16 Mar 2020 12:28:54 -0400 Subject: [PATCH 1/2] test: add a missing common.mustCall --- test/parallel/test-process-getactiverequests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-process-getactiverequests.js b/test/parallel/test-process-getactiverequests.js index 41883d35aa7dbc..09e6386179535a 100644 --- a/test/parallel/test-process-getactiverequests.js +++ b/test/parallel/test-process-getactiverequests.js @@ -1,10 +1,10 @@ 'use strict'; -require('../common'); +const common = require('../common'); const assert = require('assert'); const fs = require('fs'); for (let i = 0; i < 12; i++) - fs.open(__filename, 'r', () => {}); + fs.open(__filename, 'r', common.mustCall(() => {})); assert.strictEqual(process._getActiveRequests().length, 12); From d209f43ca225a792f7e7024d92fc8a1adcd4efd0 Mon Sep 17 00:00:00 2001 From: Harshitha KP Date: Tue, 17 Mar 2020 01:38:18 -0400 Subject: [PATCH 2/2] fixup: address review comment --- test/parallel/test-process-getactiverequests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-process-getactiverequests.js b/test/parallel/test-process-getactiverequests.js index 09e6386179535a..ed3c0c8fe861ec 100644 --- a/test/parallel/test-process-getactiverequests.js +++ b/test/parallel/test-process-getactiverequests.js @@ -5,6 +5,6 @@ const assert = require('assert'); const fs = require('fs'); for (let i = 0; i < 12; i++) - fs.open(__filename, 'r', common.mustCall(() => {})); + fs.open(__filename, 'r', common.mustCall()); assert.strictEqual(process._getActiveRequests().length, 12);