Skip to content

Commit 4989019

Browse files
committed
tests: Fix concurency test on Windows
1 parent b508d8c commit 4989019

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integration-tests/tests/concurrency.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ test("Concurrent operations with timeout should handle busy database", async (t)
184184

185185
await conn1.close();
186186
await conn2.close();
187-
fs.unlinkSync(path);
187+
await fs.promises.unlink(path);
188188
});
189189

190190

@@ -197,7 +197,7 @@ const connect = async (path_opt, options = {}) => {
197197

198198
const cleanup = async (context) => {
199199
await context.db.close();
200-
fs.unlinkSync(context.path);
200+
await fs.promises.unlink(context.path);
201201
};
202202

203203
const generateUUID = () => {

0 commit comments

Comments
 (0)