From 0bb4b4c0dbaa998ac7dbd44b78b0eac65b466f19 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Thu, 26 Nov 2026 15:03:43 +0100 Subject: [PATCH] Fixed a test of the vector stores which failed on Windows --- runtime/src/qdrant_edge_database.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runtime/src/qdrant_edge_database.rs b/runtime/src/qdrant_edge_database.rs index d5c162850..2bb8a1a89 100644 --- a/runtime/src/qdrant_edge_database.rs +++ b/runtime/src/qdrant_edge_database.rs @@ -2018,10 +2018,13 @@ mod tests { database.search_embedding(SEARCH_STORE, search_vector(), 3, None, &[]).unwrap(); assert_eq!(payload_indexes(&database).len(), INDEXED_PAYLOAD_FIELDS.len()); + // On Windows, an open WAL locks the file `.wal` in its directory against every other handle, + // so the WAL can be read only after the store is closed, just like before it was loaded: + drop(database); + // Not assert_eq: on failure, it would print every byte of the WAL. assert!(file_contents(&wal_path) == wal, "loading the store left its WAL as it was"); - drop(database); fs::remove_dir_all(test_directory).unwrap(); }