I just want to make sure that the transaction is over
#[test]
fn test_close_read_transaction() {
let db_path = "test_close_read_transaction.db";
let db = redb::Database::create(db_path).unwrap();
let read_tx = db.begin_read().unwrap();
let close_result = read_tx.close().unwrap();
}
and the test result:
---- auth::redb_persistence::test::test_close_read_transaction stdout ----
thread 'redb_persistence::test::test_close_read_transaction' panicked at redb_persistence.rs:207:44:
called `Result::unwrap()` on an `Err` value: ReadTransactionStillInUse(ReadTransaction)
I just want to make sure that the transaction is over
and the test result: