mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-20 15:35:29 +01:00
Improve lost update test case
Let's verify that first-writer wins. We still need to fix the second writer commit() to fail.
This commit is contained in:
@@ -578,5 +578,9 @@ mod tests {
|
||||
|
||||
db.commit_tx(tx2);
|
||||
db.commit_tx(tx3); // TODO: this should fail
|
||||
|
||||
let tx4 = db.begin_tx();
|
||||
let row = db.read(tx4, 1).unwrap();
|
||||
assert_eq!(tx2_row, row);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user