Skip to content

Commit d818173

Browse files
Fadi Asfourtargos
Fadi Asfour
authored andcommittedOct 18, 2017
test: remove error messages for readability
PR-URL: #16022 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 734a2d3 commit d818173

File tree

1 file changed

+3
-6
lines changed
  • test/addons/async-hooks-promise

1 file changed

+3
-6
lines changed
 

‎test/addons/async-hooks-promise/test.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@ if (process.env.NODE_TEST_WITH_ASYNC_HOOKS) {
1313
// Baseline to make sure the internal field isn't being set.
1414
assert.strictEqual(
1515
binding.getPromiseField(Promise.resolve(1)),
16-
0,
17-
'Promise internal field used despite missing enabled AsyncHook');
16+
0);
1817

1918
const hook0 = async_hooks.createHook({}).enable();
2019

2120
// Check that no PromiseWrap is created when there are no hook callbacks.
2221
assert.strictEqual(
2322
binding.getPromiseField(Promise.resolve(1)),
24-
0,
25-
'Promise internal field used despite missing enabled AsyncHook');
23+
0);
2624

2725
hook0.disable();
2826

@@ -47,6 +45,5 @@ hook1.disable();
4745
setImmediate(() => {
4846
assert.strictEqual(
4947
binding.getPromiseField(Promise.resolve(1)),
50-
0,
51-
'Promise internal field used despite missing enabled AsyncHook');
48+
0);
5249
});

0 commit comments

Comments
 (0)
Please sign in to comment.