Skip to content

Commit 887417e

Browse files
bryancr89BethGriggs
authored andcommitted
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: #22850 PR-URL: #20174 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent fa5a380 commit 887417e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎test/parallel/test-http2-cookies.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ server.on('listening', common.mustCall(() =>{
4848

4949
req.on('response',common.mustCall((headers)=>{
5050
assert(Array.isArray(headers['set-cookie']));
51-
assert.deepStrictEqual(headers['set-cookie'],setCookie,
52-
'set-cookie header does not match');
51+
assert.deepStrictEqual(headers['set-cookie'],setCookie);
5352
}));
5453

5554
req.on('end',common.mustCall(()=>{

0 commit comments

Comments
(0)