Permalink
Browse files

test: add strictEqual method to assert

Adds strictEqual method to assert on stream.session.alpnProtocol
to verify expected value 'h2'. This changes 'h2' from an assertion
error message to the value expected from stream.session.alpnProtocol.

PR-URL: #20189
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information...
christineEtaylor authored and Trott committed Apr 21, 2018
1 parent 5389c92 commit 1593237ecc8b3710fa024cbd7afa30c48b1541aa
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/parallel/test-http2-create-client-secure-session.js
@@ -21,7 +21,7 @@ function onStream(stream, headers) {
const socket = stream.session[kSocket];
assert(stream.session.encrypted);
assert(stream.session.alpnProtocol, 'h2');
assert.strictEqual(stream.session.alpnProtocol, 'h2');
const originSet = stream.session.originSet;
assert(Array.isArray(originSet));
assert.strictEqual(originSet[0],

0 comments on commit 1593237

Please sign in to comment.