Skip to content

Commit

Permalink
test: modified benchmark-async-hooks
Browse files Browse the repository at this point in the history
I made some formatting changes to the file I was working on and removed some extra comments.
  • Loading branch information
peterjreynoldsii committed Oct 12, 2018
1 parent e63a9cc commit dbd354b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 0 additions & 2 deletions test/common/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions test/sequential/test-benchmark-async-hooks.js
Original file line number Diff line number Diff line change
@@ -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'
],
{});

0 comments on commit dbd354b

Please sign in to comment.