From b7bc09fd60fa89a572f1de78bf78562bd93adbd3 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 11 May 2017 16:08:46 -0700 Subject: [PATCH] test: add not-called check to heap-profiler test Add `common.mustNotCall()` to make sure there aren't any strange shenanians in the C++ test that would cause the function to execute when it shouldn't. PR-URL: https://github.com/nodejs/node/pull/12985 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Refael Ackermann Reviewed-By: Luigi Pinca --- test/addons/heap-profiler/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/addons/heap-profiler/test.js b/test/addons/heap-profiler/test.js index c9974a060ade37..fde5508c2f3bc7 100644 --- a/test/addons/heap-profiler/test.js +++ b/test/addons/heap-profiler/test.js @@ -5,7 +5,7 @@ const common = require('../../common'); const binding = require(`./build/${common.buildType}/binding`); // Create an AsyncWrap object. -const timer = setTimeout(common.noop, 1); +const timer = setTimeout(common.mustNotCall(), 1); timer.unref(); // Stress-test the heap profiler.