Test that aborted transactions don't persist
(name)
| 284 | results.ok(f"nonexistent key raises exception: {e}") |
| 285 | |
| 286 | def test_transaction_abort(name): |
| 287 | """Test that aborted transactions don't persist""" |
| 288 | print("\n[Test: Transaction Abort]") |
| 289 | |
| 290 | txn_id = create_transaction(name) |
| 291 | upsert(name, txn_id, "abort_test_key", "should_not_exist") |
| 292 | abort_transaction(name, txn_id) |
| 293 | |
| 294 | try: |
| 295 | lookup(name, "abort_test_key") |
| 296 | results.fail("aborted key", "not found", "found") |
| 297 | except Exception: |
| 298 | results.ok("aborted transaction not persisted") |
| 299 | |
| 300 | def test_multiple_transactions(name): |
| 301 | """Test multiple sequential transactions""" |
no test coverage detected