aboutsummaryrefslogtreecommitdiffstats
path: root/log_db/tests/integration.rs
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2024-11-21 14:47:20 +0200
committerJan Tuomi <jan@jantuomi.fi>2024-11-21 14:47:20 +0200
commitf759208ae41a5bbeb163fda4b66f43b8c0e84b2b (patch)
tree10ac7d07e39b2437ca4ccb6b0f5123f8c64d3338 /log_db/tests/integration.rs
parenta01b696134e56d0e0a57cb5ff6c6dcb5914d05bb (diff)
Revert "Refresh indexes on read or at maintenance"
This reverts commit bfa8fab553eab1b0daa062010fb2ccf5d365d21f.
Diffstat (limited to 'log_db/tests/integration.rs')
-rw-r--r--log_db/tests/integration.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/log_db/tests/integration.rs b/log_db/tests/integration.rs
index f178738..fa81542 100644
--- a/log_db/tests/integration.rs
+++ b/log_db/tests/integration.rs
@@ -207,6 +207,7 @@ fn test_upsert_fails_on_invalid_value_type() {
}
#[test]
+#[ignore]
fn test_upsert_and_get_from_secondary_memtable() {
let data_dir = tmp_dir();
let mut db = DB::configure()
@@ -243,6 +244,10 @@ fn test_upsert_and_get_from_secondary_memtable() {
]);
db.upsert(&record2).unwrap();
+ // Delete the DB so that any results must come from a memtable
+ fs::remove_file(Path::new(&data_dir).join(ACTIVE_SYMLINK_FILENAME))
+ .expect("Failed to delete the DB log file");
+
// There should be 2 Johns
let johns = db
.find_all(&Field::Name, &Value::String("John".to_string()))