mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-11 11:14:21 +01:00
add manual hack to mvcc test
we rollback the mvcc transaction in the VDBE, so manually roll it back in the test
This commit is contained in:
@@ -520,6 +520,8 @@ fn test_lost_update() {
|
||||
db.mvcc_store.update(tx3, tx3_row),
|
||||
Err(LimboError::WriteWriteConflict)
|
||||
));
|
||||
// hack: in the actual tursodb database we rollback the mvcc tx ourselves, so manually roll it back here
|
||||
db.mvcc_store.rollback_tx(tx3, conn3.pager.borrow().clone());
|
||||
|
||||
commit_tx(db.mvcc_store.clone(), &conn2, tx2).unwrap();
|
||||
assert!(matches!(
|
||||
|
||||
Reference in New Issue
Block a user