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:
Pekka Enberg
2023-04-08 16:42:32 +03:00
parent 29fca23417
commit 7a2085c02f

View File

@@ -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);
}
}