Skip to content

Commit dbd354b

Browse files
test: modified benchmark-async-hooks
I made some formatting changes to the file I was working on and removed some extra comments.
1 parent e63a9cc commit dbd354b

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

lib/assert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const NO_EXCEPTION_SENTINEL = {};
8282

8383
function innerFail(obj) {
8484
if (obj.message instanceof Error) throw obj.message;
85-
console.log('---------------------------------------------------- here is where the error is ----------------------------------------------------')
85+
8686
throw new AssertionError(obj);
8787
}
8888

test/common/benchmark.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ function runBenchmark(name, args, env) {
3232
});
3333

3434
child.on('exit', (code, signal) => {
35-
console.log('---------------------------------------------------- here is code ----------------------------------------------------')
36-
console.log(code)
3735
assert.strictEqual(code, 0);
3836
assert.strictEqual(signal, null);
3937
// This bit makes sure that each benchmark file is being sent settings such
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
'use strict';
2+
3+
const common = require('../common');
4+
5+
if (!common.hasCrypto)
6+
common.skip('missing crypto');
7+
8+
if (!common.enoughTestMem)
9+
common.skip('Insufficient memory for TLS benchmark test');
10+
11+
const runBenchmark = require('../common/benchmark');
12+
13+
runBenchmark('async_hooks',
14+
[
15+
'method=trackingDisabled',
16+
'n=10'
17+
],
18+
{});

0 commit comments

Comments
 (0)