Skip to content

Commit 5abe246

Browse files
9christineBethGriggs
authored andcommittedOct 16, 2018
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. Backport-PR-URL: #22850 PR-URL: #20189 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent af5cebb commit 5abe246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎test/parallel/test-http2-create-client-secure-session.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function onStream(stream, headers) {
2121
const socket = stream.session[kSocket];
2222

2323
assert(stream.session.encrypted);
24-
assert(stream.session.alpnProtocol, 'h2');
24+
assert.strictEqual(stream.session.alpnProtocol, 'h2');
2525
const originSet = stream.session.originSet;
2626
assert(Array.isArray(originSet));
2727
assert.strictEqual(originSet[0],

0 commit comments

Comments
 (0)
Please sign in to comment.