Commit 29443f9
test: fix flaky Windows temp-dir cleanup in az stop-interception test
TestAzStopInterceptionNoOpWhenNotIntercepting is the only az test that runs the
real az binary against a temp HOME on Windows. az spawns background processes
that hold handles open under HOME\.azure, so t.TempDir()'s auto RemoveAll fails
with "being used by another process" and fails an otherwise-passing test.
Use a best-effort temp HOME (azTempHome) that ignores cleanup errors instead.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 29a25f7 commit 29443f9
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
25 | 38 | | |
26 | 39 | | |
27 | 40 | | |
| |||
0 commit comments