From 772727b0ef7d63144bf629d774f8b6c1c996bf78 Mon Sep 17 00:00:00 2001 From: salmonik Date: Thu, 29 Oct 2026 21:36:26 +0100 Subject: v2.3.1: settle orphaned reservations on server restart --- docs/TESTING.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs/TESTING.md') diff --git a/docs/TESTING.md b/docs/TESTING.md index 3c7fa61..60bc4ac 100644 --- a/docs/TESTING.md +++ b/docs/TESTING.md @@ -111,6 +111,16 @@ Use an 80-column terminal because several output lines are width-sensitive. 7. Confirm the crash point is absent from the `CRASH_START` line (it must only appear once the round is over). +## Manual restart check + +1. Start a blackjack hand (or a crash round) and confirm `pending_plays` has one + row while the round is live. +2. `kill -9` the server, then start it again on the same database. The log must + say `Settled 1 orphaned reservation(s) as abandoned after a restart`. +3. Confirm the balance did not change, `pending_plays` is empty, and `plays` has + one row with `winnings = 0`, `details.result = "abandoned"` and + `details.reason = "server_restart"`. + ## Manual server checks - Register, log out, log in again (bcrypt path). -- cgit v1.2.3