From 887417eb37ca9a9f297d2112781ef6856e0385f2 Mon Sep 17 00:00:00 2001 From: Bryan Azofeifa Date: Thu, 19 Apr 2018 17:29:27 -0600 Subject: [PATCH] test: remove message from strictEqual assertions When an AssertionError happens, the value of headers['set-cookie'] is not reported. That information is useful for debugging. Hence removed the value passed as the message in deepStrictEqual assertions of test/parallel/test-http2-cookies.js Backport-PR-URL: https://github.com/nodejs/node/pull/22850 PR-URL: https://github.com/nodejs/node/pull/20174 Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: Richard Lau Reviewed-By: Trivikram Kamat --- test/parallel/test-http2-cookies.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/parallel/test-http2-cookies.js b/test/parallel/test-http2-cookies.js index cf763915389287..25113eaba8eb18 100644 --- a/test/parallel/test-http2-cookies.js +++ b/test/parallel/test-http2-cookies.js @@ -48,8 +48,7 @@ server.on('listening', common.mustCall(() => { req.on('response', common.mustCall((headers) => { assert(Array.isArray(headers['set-cookie'])); - assert.deepStrictEqual(headers['set-cookie'], setCookie, - 'set-cookie header does not match'); + assert.deepStrictEqual(headers['set-cookie'], setCookie); })); req.on('end', common.mustCall(() => {