Repository navigation
Commit a5b7ffe
committed
fix(vscode): retry temp directory cleanup in the e2e fixture
The per-test `tempDir` fixture removed the directory immediately after the
test body finished. The extension host is often still writing into it at that
point - the language server is shutting down, or uv is finishing a virtual
environment the test created there - so `fs.remove` intermittently failed
with `ENOTEMPTY` and failed an otherwise passing test, e.g.
Error: ENOTEMPTY: directory not empty, rmdir
'.../vscode-test-temp-Ay5Ma1/.venv/lib/python3.11/site-packages/tenacity'
Retry the removal with a backoff and, if it still cannot be removed, warn
instead of failing the test. Cleaning a temporary directory is not what the
test is asserting.
Signed-off-by: Adegbite Ayoade <tripleaceme@gmail.com>1 parent cec118b commit a5b7ffe
1 file changed
Lines changed: 28 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
11 | 38 | | |
12 | 39 | | |
13 | 40 | | |
| |||
52 | 79 | | |
53 | 80 | | |
54 | 81 | | |
55 | | - | |
| 82 | + | |
56 | 83 | | |
57 | 84 | | |
58 | 85 | | |
| |||
0 commit comments