From 09c152e9b40ea9809c455073e1e615e4af5e1d63 Mon Sep 17 00:00:00 2001 From: Sean Karson Date: Mon, 6 Nov 2017 15:14:16 +0000 Subject: [PATCH] test: show incorrect value on test failure PR-URL: https://github.com/nodejs/node/pull/16818 Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Rich Trott Reviewed-By: Khaidi Chu --- test/async-hooks/test-promise.promise-before-init-hooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/async-hooks/test-promise.promise-before-init-hooks.js b/test/async-hooks/test-promise.promise-before-init-hooks.js index 79bbd1751d83fd..957d1a75e49f70 100644 --- a/test/async-hooks/test-promise.promise-before-init-hooks.js +++ b/test/async-hooks/test-promise.promise-before-init-hooks.js @@ -16,7 +16,7 @@ hooks.enable(); p.then(function afterresolution(val) { assert.strictEqual(val, 5); const as = hooks.activitiesOfTypes('PROMISE'); - assert.strictEqual(as.length, 1, 'one activity'); + assert.strictEqual(as.length, 1); checkInvocations(as[0], { init: 1, before: 1 }, 'after resolution child promise'); return val;