Skip to content

Commit 922ea0a

Browse files
authored
Try to fix benchmakrs-website tests on windows (#7794)
If we drop the db before we open we should avoid the double open problem Signed-off-by: Robert Kruszewski <github@robertk.io>
1 parent 903ee6c commit 922ea0a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

benchmarks-website/migrate/tests/end_to_end.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ fn open_target_db_removes_orphan_wal() {
277277
assert!(wal.exists(), "precondition: orphan wal staged");
278278
assert!(!target.exists(), "precondition: no main db file");
279279

280-
let _conn = migrate::open_target_db(&target).unwrap();
280+
{
281+
let _conn = migrate::open_target_db(&target).unwrap();
282+
}
281283

282284
// The migrator opens the DB after sweeping the WAL; DuckDB may
283285
// recreate its own wal under load, but our pre-existing orphan

0 commit comments

Comments
 (0)