From 0d7fd92552adc164f81732e707ae14a44b8176c4 Mon Sep 17 00:00:00 2001 From: Axel Viala Date: Wed, 5 Jul 2023 16:51:16 +0200 Subject: [PATCH] Fix test with RoTxn::commit() --- heed/src/env.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/heed/src/env.rs b/heed/src/env.rs index 5edcbeea..fa96ebbc 100644 --- a/heed/src/env.rs +++ b/heed/src/env.rs @@ -975,7 +975,10 @@ mod tests { .unwrap(); let database0 = { let rtxn = env.read_txn().unwrap(); - env.open_database::(&rtxn, Some("shared0")).unwrap().unwrap() + let database0 = + env.open_database::(&rtxn, Some("shared0")).unwrap().unwrap(); + rtxn.commit().unwrap(); + database0 }; {