Skip to content
Permalink
Browse files

test: fix arguments order of comparsion functions

Place actual values as the first agruments and expected as the second.

PR-URL: #27907
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information...
martyns0n authored and ChALkeR committed May 26, 2019
1 parent 2d8367a commit d6cc6ab0376d5dd6a644313154ad84d94be58b2d
Showing with 5 additions and 5 deletions.
  1. +5 −5 test/parallel/test-http2-origin.js
@@ -96,7 +96,7 @@ const ca = readKey('fake-startcom-root-cert.pem', 'binary');
client.on('origin', mustCall((origins) => {
const check = checks.shift();
originSet.push(...check);
deepStrictEqual(originSet, client.originSet);
deepStrictEqual(client.originSet, originSet);
deepStrictEqual(origins, check);
countdown.dec();
}, 2));
@@ -121,7 +121,7 @@ const ca = readKey('fake-startcom-root-cert.pem', 'binary');

client.on('origin', mustCall((origins) => {
originSet.push(...check);
deepStrictEqual(originSet, client.originSet);
deepStrictEqual(client.originSet, originSet);
deepStrictEqual(origins, check);
client.close();
server.close();
@@ -148,11 +148,11 @@ const ca = readKey('fake-startcom-root-cert.pem', 'binary');
const client = connect(origin, { ca });

client.on('origin', mustCall((origins) => {
deepStrictEqual([origin, 'https://foo.org'], client.originSet);
deepStrictEqual(client.originSet, [origin, 'https://foo.org']);
const req = client.request({ ':authority': 'foo.org' });
req.on('response', mustCall((headers) => {
strictEqual(421, headers[':status']);
deepStrictEqual([origin], client.originSet);
strictEqual(headers[':status'], 421);
deepStrictEqual(client.originSet, [origin]);
}));
req.resume();
req.on('close', mustCall(() => {

0 comments on commit d6cc6ab

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