From f4c15a37d385a3fbf6a2b8b144bfec418a04ba93 Mon Sep 17 00:00:00 2001 From: Jussi Saurio Date: Sun, 14 Sep 2025 23:46:38 +0300 Subject: [PATCH] add manual hack to mvcc test we rollback the mvcc transaction in the VDBE, so manually roll it back in the test --- core/mvcc/database/tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/mvcc/database/tests.rs b/core/mvcc/database/tests.rs index 634c8e089..ee6ef58c0 100644 --- a/core/mvcc/database/tests.rs +++ b/core/mvcc/database/tests.rs @@ -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!(