- Notifications
You must be signed in to change notification settings - Fork927
Commita5bfb20
authored
chore: refactor TestServer_X11 to use inproc networking (#18564)
relates to#18263Refactors the x11Forwarder to accept a networking `interface` that we can fake out for testing. This isolates the unit tests from other processes listening in the port range used by X11 forwarding. This will become extremely important in up-stack PRs where we listen on every port in the range and need to control which ports have conflicts.1 parentabcf3df commita5bfb20
3 files changed
+63
-28
lines changedLines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
117 | 117 |
| |
118 | 118 |
| |
119 | 119 |
| |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
120 | 124 |
| |
121 | 125 |
| |
122 | 126 |
| |
| |||
196 | 200 |
| |
197 | 201 |
| |
198 | 202 |
| |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
199 | 209 |
| |
200 | 210 |
| |
201 | 211 |
| |
|
Lines changed: 34 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
40 | 55 |
| |
41 | 56 |
| |
42 | 57 |
| |
43 | 58 |
| |
44 | 59 |
| |
45 | 60 |
| |
| 61 | + | |
| 62 | + | |
| 63 | + | |
46 | 64 |
| |
47 | 65 |
| |
48 | 66 |
| |
| |||
147 | 165 |
| |
148 | 166 |
| |
149 | 167 |
| |
150 |
| - | |
151 |
| - | |
152 |
| - | |
153 |
| - | |
154 |
| - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
155 | 177 |
| |
156 |
| - | |
157 |
| - | |
158 |
| - | |
159 |
| - | |
160 |
| - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
161 | 181 |
| |
162 | 182 |
| |
163 | 183 |
| |
164 | 184 |
| |
165 | 185 |
| |
166 | 186 |
| |
167 |
| - | |
168 |
| - | |
169 |
| - | |
| 187 | + | |
| 188 | + | |
170 | 189 |
| |
171 | 190 |
| |
172 | 191 |
| |
| |||
287 | 306 |
| |
288 | 307 |
| |
289 | 308 |
| |
290 |
| - | |
291 | 309 |
| |
292 | 310 |
| |
293 | 311 |
| |
294 | 312 |
| |
295 | 313 |
| |
296 |
| - | |
| 314 | + | |
| 315 | + | |
297 | 316 |
| |
298 | 317 |
| |
299 | 318 |
| |
|
Lines changed: 19 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
7 | 6 |
| |
8 | 7 |
| |
9 | 8 |
| |
| |||
32 | 31 |
| |
33 | 32 |
| |
34 | 33 |
| |
35 |
| - | |
| 34 | + | |
36 | 35 |
| |
37 | 36 |
| |
38 |
| - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
39 | 47 |
| |
40 | 48 |
| |
41 | 49 |
| |
| |||
93 | 101 |
| |
94 | 102 |
| |
95 | 103 |
| |
96 |
| - | |
97 |
| - | |
98 |
| - | |
99 |
| - | |
100 |
| - | |
101 |
| - | |
102 |
| - | |
103 |
| - | |
104 |
| - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
105 | 111 |
| |
106 |
| - | |
| 112 | + | |
107 | 113 |
| |
108 | 114 |
| |
109 | 115 |
| |
|
0 commit comments
Comments
(0)