Skip to content
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 <>
Reviewed-By: Richard Lau <>
Reviewed-By: Trivikram Kamat <>
Reviewed-By: Luigi Pinca <>
Reviewed-By: Benjamin Gruenbaum <>
Reviewed-By: Anna Henningsen <>
Reviewed-By: Colin Ihrig <>
Reviewed-By: Ruben Bridgewater <>
  • 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.alpnProtocol, 'h2');
assert.strictEqual(stream.session.alpnProtocol, 'h2');
const originSet = stream.session.originSet;

0 comments on commit 1593237

Please sign in to comment.
You can’t perform that action at this time.