From 652cadba1c4594a347b425f9aee5e92644d43ad9 Mon Sep 17 00:00:00 2001 From: martyns0n Date: Sun, 26 May 2019 17:26:05 +0300 Subject: [PATCH] test: fix arguments order of comparsion functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Place actual values as the first agruments and expected as the second. PR-URL: https://github.com/nodejs/node/pull/27907 Reviewed-By: Сковорода Никита Андреевич Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: Ujjwal Sharma Reviewed-By: Rich Trott Reviewed-By: Gireesh Punathil --- test/parallel/test-http2-origin.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/parallel/test-http2-origin.js b/test/parallel/test-http2-origin.js index d0d8c81f801a88..7aa0a16e35f22e 100644 --- a/test/parallel/test-http2-origin.js +++ b/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(() => {