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:
Jussi Saurio
2025-09-14 23:46:38 +03:00
parent db3428a7a9
commit f4c15a37d3

View File

@@ -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!(