Skip to content

Commit

Permalink
test: remove error messages for readability
Browse files Browse the repository at this point in the history
PR-URL: #16022
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
Fadi Asfour authored and joyeecheung committed Oct 14, 2017
1 parent eac257f commit 5ea88b7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/addons/async-hooks-promise/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@ if (process.env.NODE_TEST_WITH_ASYNC_HOOKS) {
// Baseline to make sure the internal field isn't being set.
assert.strictEqual(
binding.getPromiseField(Promise.resolve(1)),
0,
'Promise internal field used despite missing enabled AsyncHook');
0);

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

// Check that no PromiseWrap is created when there are no hook callbacks.
assert.strictEqual(
binding.getPromiseField(Promise.resolve(1)),
0,
'Promise internal field used despite missing enabled AsyncHook');
0);

hook0.disable();

Expand All @@ -47,6 +45,5 @@ hook1.disable();
setImmediate(() => {
assert.strictEqual(
binding.getPromiseField(Promise.resolve(1)),
0,
'Promise internal field used despite missing enabled AsyncHook');
0);
});

0 comments on commit 5ea88b7

Please sign in to comment.