Commit 81a2194
test: simplify test-tls-set-secure-context
Instead of recursively scheduling makeRemainingRequests and ignoring its
outcome, safely loop within the async function.
Avoid unncessary async lambda functions passed to assert.rejects.
Use events.once() to simplify control flow in makeRequest, instead of
manually constructing a Promise.
PR-URL: #43878
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>1 parent d7e9bd1 commit 81a2194Copy full SHA for 81a2194
File tree
Expand file treeCollapse file tree
1 file changed
+28
-41
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+28
-41
lines changedOpen diff view settings
Collapse file
test/parallel/test-tls-set-secure-context.js
Copy file name to clipboardExpand all lines: test/parallel/test-tls-set-secure-context.js+28-41Lines changed: 28 additions & 41 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
| 12 | + |
12 | 13 | |
| 14 | + |
13 | 15 | |
14 | 16 | |
15 | 17 | |
| ||
43 | 45 | |
44 | 46 | |
45 | 47 | |
46 | | - |
| 48 | + |
47 | 49 | |
48 | | - |
49 | | - |
| 50 | + |
| 51 | + |
50 | 52 | |
51 | 53 | |
52 | 54 | |
| ||
56 | 58 | |
57 | 59 | |
58 | 60 | |
59 | | - |
60 | | - |
61 | | - |
| 61 | + |
62 | 62 | |
63 | 63 | |
64 | 64 | |
65 | 65 | |
66 | 66 | |
67 | 67 | |
68 | | - |
69 | | - |
70 | | - |
| 68 | + |
71 | 69 | |
72 | 70 | |
73 | 71 | |
74 | | - |
75 | | - |
76 | | - |
| 72 | + |
77 | 73 | |
78 | 74 | |
79 | | - |
80 | | - |
81 | | - |
82 | | - |
83 | | - |
84 | | - |
85 | | - |
86 | | - |
87 | | - |
88 | | - |
89 | | - |
90 | | - |
91 | | - |
92 | | - |
93 | | - |
94 | | - |
95 | | - |
96 | | - |
97 | | - |
98 | | - |
99 | | - |
100 | | - |
101 | | - |
102 | | - |
103 | | - |
104 | | - |
105 | | - |
106 | | - |
107 | | - |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
108 | 95 | |
0 commit comments