Commit 3192e44
Fix flaky Windows tests: dispose file watchers before removing tmp dirs
The afterEach cleanup in three discovery test files called
tmpDirRemoveCallback() before discovery.dispose(). On Windows, the file
system watchers held open handles on the temp directory, causing
rimrafSync to fail with ENOTEMPTY. Swapping the order ensures watchers
are released before the directory is deleted.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent bf5f763 commit 3192e44
3 files changed
Lines changed: 3 additions & 3 deletions
File tree
- extensions/ql-vscode/test/vscode-tests/minimal-workspace
- common/vscode
- queries-panel
extensions/ql-vscode/test/vscode-tests/minimal-workspace/common/vscode/file-path-discovery.test.ts
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | 121 | | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | 56 | | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments