Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 652cadb

Browse filesBrowse files
m0rtyntargos
authored andcommitted
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>
1 parent 728bc2f commit 652cadb
Copy full SHA for 652cadb

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-http2-origin.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-http2-origin.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const ca = readKey('fake-startcom-root-cert.pem', 'binary');
9696
client.on('origin', mustCall((origins) => {
9797
const check = checks.shift();
9898
originSet.push(...check);
99-
deepStrictEqual(originSet, client.originSet);
99+
deepStrictEqual(client.originSet, originSet);
100100
deepStrictEqual(origins, check);
101101
countdown.dec();
102102
}, 2));
@@ -121,7 +121,7 @@ const ca = readKey('fake-startcom-root-cert.pem', 'binary');
121121

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

150150
client.on('origin', mustCall((origins) => {
151-
deepStrictEqual([origin, 'https://foo.org'], client.originSet);
151+
deepStrictEqual(client.originSet, [origin, 'https://foo.org']);
152152
const req = client.request({ ':authority': 'foo.org' });
153153
req.on('response', mustCall((headers) => {
154-
strictEqual(421, headers[':status']);
155-
deepStrictEqual([origin], client.originSet);
154+
strictEqual(headers[':status'], 421);
155+
deepStrictEqual(client.originSet, [origin]);
156156
}));
157157
req.resume();
158158
req.on('close', mustCall(() => {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.