Skip to content

Commit

Permalink
Fix test with RoTxn::commit()
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Viala committed Jul 5, 2023
1 parent e2e8516 commit 0d7fd92
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion heed/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,10 @@ mod tests {
.unwrap();
let database0 = {
let rtxn = env.read_txn().unwrap();
env.open_database::<Str, Str>(&rtxn, Some("shared0")).unwrap().unwrap()
let database0 =
env.open_database::<Str, Str>(&rtxn, Some("shared0")).unwrap().unwrap();
rtxn.commit().unwrap();
database0
};

{
Expand Down

0 comments on commit 0d7fd92

Please sign in to comment.