- Notifications
You must be signed in to change notification settings - Fork928
Commit94eb9b8
authored
fix: disable t.Parallel on TestPortForward (#10449)
I've said it before, I'll say it again: you can't create a timed context before calling `t.Parallel()` and then use it after.Fixes flakes likehttps://github.com/coder/coder/actions/runs/6716682414/job/18253279157I've chosen just to drop `t.Parallel()` entirely rather than create a second context after the parallel call, since the vast majority of the test time happens before where the parallel call was. It does all the tailnet setup before `t.Parallel()`.Leaving a call to `t.Parallel()` is a bug risk for future maintainers to come in and use the wrong context in the latter part of the test by accident.1 parent6882e8e commit94eb9b8
3 files changed
+28
-10
lines changedLines changed: 16 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
101 |
| - | |
| 101 | + | |
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
| |||
131 | 131 |
| |
132 | 132 |
| |
133 | 133 |
| |
134 |
| - | |
| 134 | + | |
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
| |||
185 | 185 |
| |
186 | 186 |
| |
187 | 187 |
| |
188 |
| - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
189 | 197 |
| |
190 | 198 |
| |
191 | 199 |
| |
| |||
218 | 226 |
| |
219 | 227 |
| |
220 | 228 |
| |
| 229 | + | |
221 | 230 |
| |
222 | 231 |
| |
223 | 232 |
| |
| |||
227 | 236 |
| |
228 | 237 |
| |
229 | 238 |
| |
| 239 | + | |
230 | 240 |
| |
231 | 241 |
| |
232 | 242 |
| |
233 | 243 |
| |
234 | 244 |
| |
235 | 245 |
| |
| 246 | + | |
236 | 247 |
| |
237 | 248 |
| |
238 | 249 |
| |
| |||
242 | 253 |
| |
243 | 254 |
| |
244 | 255 |
| |
| 256 | + | |
245 | 257 |
| |
246 | 258 |
| |
| 259 | + | |
247 | 260 |
| |
248 | 261 |
| |
249 | 262 |
| |
|
Lines changed: 10 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
143 |
| - | |
| 143 | + | |
144 | 144 |
| |
145 | 145 |
| |
| 146 | + | |
146 | 147 |
| |
147 | 148 |
| |
148 | 149 |
| |
| |||
166 | 167 |
| |
167 | 168 |
| |
168 | 169 |
| |
169 |
| - | |
170 |
| - | |
171 | 170 |
| |
172 | 171 |
| |
173 | 172 |
| |
| |||
185 | 184 |
| |
186 | 185 |
| |
187 | 186 |
| |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
188 | 191 |
| |
189 | 192 |
| |
190 | 193 |
| |
| |||
213 | 216 |
| |
214 | 217 |
| |
215 | 218 |
| |
216 |
| - | |
217 |
| - | |
218 | 219 |
| |
219 | 220 |
| |
220 | 221 |
| |
| |||
234 | 235 |
| |
235 | 236 |
| |
236 | 237 |
| |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
237 | 242 |
| |
238 | 243 |
| |
239 | 244 |
| |
| |||
266 | 271 |
| |
267 | 272 |
| |
268 | 273 |
| |
269 |
| - | |
270 |
| - | |
271 | 274 |
| |
272 | 275 |
| |
273 | 276 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
936 | 936 |
| |
937 | 937 |
| |
938 | 938 |
| |
| 939 | + | |
939 | 940 |
| |
940 | 941 |
| |
941 | 942 |
| |
942 | 943 |
| |
| 944 | + | |
943 | 945 |
| |
944 | 946 |
| |
945 | 947 |
| |
|
0 commit comments
Comments
(0)