diff --git a/lib/assert.js b/lib/assert.js index 9d16b07a432a09..9990d0e888e1c5 100644 --- a/lib/assert.js +++ b/lib/assert.js @@ -82,7 +82,7 @@ const NO_EXCEPTION_SENTINEL = {}; function innerFail(obj) { if (obj.message instanceof Error) throw obj.message; - console.log('---------------------------------------------------- here is where the error is ----------------------------------------------------') + throw new AssertionError(obj); } diff --git a/test/common/benchmark.js b/test/common/benchmark.js index b44330285f8c43..0894146c4d1443 100644 --- a/test/common/benchmark.js +++ b/test/common/benchmark.js @@ -32,8 +32,6 @@ function runBenchmark(name, args, env) { }); child.on('exit', (code, signal) => { - console.log('---------------------------------------------------- here is code ----------------------------------------------------') - console.log(code) assert.strictEqual(code, 0); assert.strictEqual(signal, null); // This bit makes sure that each benchmark file is being sent settings such diff --git a/test/sequential/test-benchmark-async-hooks.js b/test/sequential/test-benchmark-async-hooks.js new file mode 100644 index 00000000000000..a6a27270f650b4 --- /dev/null +++ b/test/sequential/test-benchmark-async-hooks.js @@ -0,0 +1,18 @@ +'use strict'; + +const common = require('../common'); + +if (!common.hasCrypto) + common.skip('missing crypto'); + +if (!common.enoughTestMem) + common.skip('Insufficient memory for TLS benchmark test'); + +const runBenchmark = require('../common/benchmark'); + +runBenchmark('async_hooks', + [ + 'method=trackingDisabled', + 'n=10' + ], + {});