Skip to content

Commit b7bc09f

Browse files
committed
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: #12985 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent b5ae22d commit b7bc09f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/addons/heap-profiler/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const common = require('../../common');
55
const binding = require(`./build/${common.buildType}/binding`);
66

77
// Create an AsyncWrap object.
8-
const timer = setTimeout(common.noop, 1);
8+
const timer = setTimeout(common.mustNotCall(), 1);
99
timer.unref();
1010

1111
// Stress-test the heap profiler.

0 commit comments

Comments
 (0)