diff options
author | Rich Trott <rtrott@gmail.com> | 2017-05-11 16:08:46 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-05-14 20:04:20 -0700 |
commit | b7bc09fd60fa89a572f1de78bf78562bd93adbd3 (patch) | |
tree | ba8564b1ff0f3a81d472a5015d5ded8b5ff6c6de /test/addons | |
parent | b5ae22dd1c7455178178c56a1eca3d5f72eff39e (diff) | |
download | android-node-v8-b7bc09fd60fa89a572f1de78bf78562bd93adbd3.tar.gz android-node-v8-b7bc09fd60fa89a572f1de78bf78562bd93adbd3.tar.bz2 android-node-v8-b7bc09fd60fa89a572f1de78bf78562bd93adbd3.zip |
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 <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'test/addons')
-rw-r--r-- | test/addons/heap-profiler/test.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/addons/heap-profiler/test.js b/test/addons/heap-profiler/test.js index c9974a060a..fde5508c2f 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. |