File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,10 @@ import {
77import { useTempDir } from "./test-utils" ;
88
99describe ( "SQLite Sessions" , ( ) => {
10- const { getDbPath, closeDatabases } = useTempDir ( "sqlite-session-test-" ) ;
10+ const { getDbPath, closeDatabases } = useTempDir ( "sqlite-session-test-" , {
11+ waitForWindows : true ,
12+ cleanupWalFiles : true ,
13+ } ) ;
1114 let db : DatabaseSyncInstance ;
1215
1316 beforeEach ( ( ) => {
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ export function useTempDir(
138138
139139 // Wait a bit for Windows file handles to be released if requested
140140 if ( options ?. waitForWindows && process . platform === "win32" ) {
141- await new Promise ( ( resolve ) => setTimeout ( resolve , 100 ) ) ;
141+ await new Promise ( ( resolve ) => setTimeout ( resolve , 500 ) ) ;
142142 }
143143
144144 if ( fs . existsSync ( context . tempDir ) ) {
You can’t perform that action at this time.
0 commit comments