GeezerVison is showing github.com — test: reduce number of written chunks · nodejs/node@4ff79fb
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: test/parallel/test-http-server-headers-timeout-delayed-headers.js +6-4Lines changed: 6 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -55,10 +55,12 @@ server.listen(0, common.mustCall(() => { |
55 | 55 |
|
56 | 56 | sendDelayedRequestHeaders = common.mustCall(() => { |
57 | 57 | setTimeout(() => { |
58 | | - client.write('POST / HTTP/1.1\r\n'); |
59 | | - client.write('Content-Length: 20\r\n'); |
60 | | - client.write('Connection: close\r\n\r\n'); |
61 | | - client.write('12345678901234567890\r\n\r\n'); |
| 58 | + client.write( |
| 59 | + 'POST / HTTP/1.1\r\n' + |
| 60 | + 'Content-Length: 20\r\n' + |
| 61 | + 'Connection: close\r\n\r\n' + |
| 62 | + '12345678901234567890\r\n\r\n' |
| 63 | + ); |
62 | 64 | }, common.platformTimeout(headersTimeout * 2)).unref(); |
63 | 65 | }); |
64 | 66 | })); |
Collapse file
Copy file name to clipboardExpand all lines: test/parallel/test-http-server-headers-timeout-interrupted-headers.js +5-3Lines changed: 5 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -52,9 +52,11 @@ server.listen(0, common.mustCall(() => { |
52 | 52 | })); |
53 | 53 |
|
54 | 54 | client.resume(); |
55 | | - client.write('GET / HTTP/1.1\r\n'); |
56 | | - client.write('Connection: close\r\n'); |
57 | | - client.write('X-CRASH: '); |
| 55 | + client.write( |
| 56 | + 'GET / HTTP/1.1\r\n' + |
| 57 | + 'Connection: close\r\n' + |
| 58 | + 'X-CRASH: ' |
| 59 | + ); |
58 | 60 |
|
59 | 61 | sendDelayedRequestHeaders = common.mustCall(() => { |
60 | 62 | setTimeout(() => { |
|
Collapse file
Copy file name to clipboardExpand all lines: test/parallel/test-http-server-request-timeout-delayed-body.js +6-5Lines changed: 6 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -59,11 +59,12 @@ server.listen(0, common.mustCall(() => { |
59 | 59 | })); |
60 | 60 |
|
61 | 61 | client.resume(); |
62 | | - client.write('POST / HTTP/1.1\r\n'); |
63 | | - client.write('Host: example.com\r\n'); |
64 | | - client.write('Content-Length: 20\r\n'); |
65 | | - client.write('Connection: close\r\n'); |
66 | | - client.write('\r\n'); |
| 62 | + client.write( |
| 63 | + 'POST / HTTP/1.1\r\n' + |
| 64 | + 'Host: example.com\r\n' + |
| 65 | + 'Content-Length: 20\r\n' + |
| 66 | + 'Connection: close\r\n\r\n' |
| 67 | + ); |
67 | 68 |
|
68 | 69 | sendDelayedRequestBody = common.mustCall(() => { |
69 | 70 | setTimeout(() => { |
|
Collapse file
Copy file name to clipboardExpand all lines: test/parallel/test-http-server-request-timeout-delayed-headers.js +6-4Lines changed: 6 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -50,10 +50,12 @@ server.listen(0, common.mustCall(() => { |
50 | 50 |
|
51 | 51 | sendDelayedRequestHeaders = common.mustCall(() => { |
52 | 52 | setTimeout(() => { |
53 | | - client.write('POST / HTTP/1.1\r\n'); |
54 | | - client.write('Content-Length: 20\r\n'); |
55 | | - client.write('Connection: close\r\n\r\n'); |
56 | | - client.write('12345678901234567890\r\n\r\n'); |
| 53 | + client.write( |
| 54 | + 'POST / HTTP/1.1\r\n' + |
| 55 | + 'Content-Length: 20\r\n' + |
| 56 | + 'Connection: close\r\n\r\n' + |
| 57 | + '12345678901234567890\r\n\r\n' |
| 58 | + ); |
57 | 59 | }, common.platformTimeout(requestTimeout * 2)).unref(); |
58 | 60 | }); |
59 | 61 | })); |
Collapse file
Copy file name to clipboardExpand all lines: test/parallel/test-http-server-request-timeout-interrupted-body.js +7-6Lines changed: 7 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -59,12 +59,13 @@ server.listen(0, common.mustCall(() => { |
59 | 59 | })); |
60 | 60 |
|
61 | 61 | client.resume(); |
62 | | - client.write('POST / HTTP/1.1\r\n'); |
63 | | - client.write('Host: example.com\r\n'); |
64 | | - client.write('Content-Length: 20\r\n'); |
65 | | - client.write('Connection: close\r\n'); |
66 | | - client.write('\r\n'); |
67 | | - client.write('1234567890'); |
| 62 | + client.write( |
| 63 | + 'POST / HTTP/1.1\r\n' + |
| 64 | + 'Host: example.com\r\n' + |
| 65 | + 'Content-Length: 20\r\n' + |
| 66 | + 'Connection: close\r\n\r\n' + |
| 67 | + '1234567890' |
| 68 | + ); |
68 | 69 |
|
69 | 70 | sendDelayedRequestBody = common.mustCall(() => { |
70 | 71 | setTimeout(() => { |
|
Collapse file
Copy file name to clipboardExpand all lines: test/parallel/test-http-server-request-timeout-interrupted-headers.js +5-3Lines changed: 5 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -47,9 +47,11 @@ server.listen(0, common.mustCall(() => { |
47 | 47 | })); |
48 | 48 |
|
49 | 49 | client.resume(); |
50 | | - client.write('GET / HTTP/1.1\r\n'); |
51 | | - client.write('Connection: close\r\n'); |
52 | | - client.write('X-CRASH: '); |
| 50 | + client.write( |
| 51 | + 'GET / HTTP/1.1\r\n' + |
| 52 | + 'Connection: close\r\n' + |
| 53 | + 'X-CRASH: ' |
| 54 | + ); |
53 | 55 |
|
54 | 56 | sendDelayedRequestHeaders = common.mustCall(() => { |
55 | 57 | setTimeout(() => { |
|