Commit 89f8f70
committed
fix(test): flush deferred DB close before temp-dir removal in embedding regression (#1328)
On Windows, buildGraph uses closeDbDeferred which schedules the SQLite
WAL checkpoint via setImmediate. When afterAll runs before the deferred
close executes, fs.rmSync throws EBUSY on graph.db. Call flushDeferredClose
before the temp-dir cleanup to ensure the handle is closed synchronously.1 parent 818a557 commit 89f8f70
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
| |||
0 commit comments