Commit bffc7a1
tests: fix left over kube-apiserver and etcd processes
Sometimes (for example when the CRD file isn't found), the test would
stop immediately after envtest.Start, meaning that the t.Cleanup block
wouldn't run and the two new processes would be left over after the test
process would end.
The credit for identifying this bug and fixing goes to Richard Wall in
[1].
[1]: #560 (comment)
Co-authored-by: Richard Wall <[email protected]>1 parent ac192bb commit bffc7a1
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
350 | | - | |
351 | 349 | | |
| 350 | + | |
352 | 351 | | |
353 | 352 | | |
354 | | - | |
355 | | - | |
| 353 | + | |
| 354 | + | |
356 | 355 | | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
0 commit comments