mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
test: tolerate windows sqlite handle lag in json migration cleanup
This commit is contained in:
@@ -111,7 +111,10 @@ describe("JSON to SQLite migration", () => {
|
||||
afterEach(async () => {
|
||||
sqlite.close()
|
||||
await fs.rm(storageDir, { recursive: true, force: true })
|
||||
await Promise.all([dbFile, dbFile + "-shm", dbFile + "-wal"].map((file) => fs.rm(file, { force: true })))
|
||||
// Windows can keep SQLite WAL handles alive past layer disposal, so tolerate EBUSY here.
|
||||
await Promise.all(
|
||||
[dbFile, dbFile + "-shm", dbFile + "-wal"].map((file) => fs.rm(file, { force: true }).catch(() => undefined)),
|
||||
)
|
||||
})
|
||||
|
||||
test("migrates project", async () => {
|
||||
|
||||
Reference in New Issue
Block a user