Commit 4514fd7
test: refactor the code in test-http-keep-alive
* use common.mustCall to control the functions execution automatically
* use let and const instead of var
* use assert.strictEqual instead assert.equal
PR-URL: #10350
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>1 parent f301df4 commit 4514fd7Copy full SHA for 4514fd7
File tree
Expand file treeCollapse file tree
1 file changed
+25
-25
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+25
-25
lines changedOpen diff view settings
Collapse file
test/parallel/test-http-keep-alive.js
Copy file name to clipboard+25-25Lines changed: 25 additions & 25 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | | - |
4 | | - |
| 2 | + |
| 3 | + |
| 4 | + |
5 | 5 | |
6 | | - |
| 6 | + |
| 7 | + |
7 | 8 | |
8 | | - |
9 | 9 | |
10 | 10 | |
11 | 11 | |
12 | | - |
| 12 | + |
13 | 13 | |
14 | | - |
15 | | - |
16 | | - |
| 14 | + |
| 15 | + |
| 16 | + |
17 | 17 | |
18 | | - |
| 18 | + |
19 | 19 | |
20 | 20 | |
21 | 21 | |
22 | | - |
23 | | - |
24 | | - |
| 22 | + |
| 23 | + |
| 24 | + |
25 | 25 | |
26 | | - |
| 26 | + |
27 | 27 | |
28 | 28 | |
29 | 29 | |
30 | | - |
31 | | - |
32 | | - |
| 30 | + |
| 31 | + |
| 32 | + |
33 | 33 | |
34 | | - |
| 34 | + |
35 | 35 | |
36 | 36 | |
37 | 37 | |
38 | | - |
39 | | - |
40 | | - |
| 38 | + |
| 39 | + |
| 40 | + |
41 | 41 | |
42 | 42 | |
43 | | - |
| 43 | + |
44 | 44 | |
45 | | - |
46 | | - |
| 45 | + |
| 46 | + |
47 | 47 | |
48 | | - |
| 48 | + |
49 | 49 | |
50 | 50 | |
51 | 51 | |
0 commit comments