diff options
Diffstat (limited to '')
| -rw-r--r-- | docs/TESTING.md | 10 |
1 files changed, 10 insertions, 0 deletions
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. | |||
| 111 | 7. Confirm the crash point is absent from the `CRASH_START` line (it must only | 111 | 7. Confirm the crash point is absent from the `CRASH_START` line (it must only |
| 112 | appear once the round is over). | 112 | appear once the round is over). |
| 113 | 113 | ||
| 114 | ## Manual restart check | ||
| 115 | |||
| 116 | 1. Start a blackjack hand (or a crash round) and confirm `pending_plays` has one | ||
| 117 | row while the round is live. | ||
| 118 | 2. `kill -9` the server, then start it again on the same database. The log must | ||
| 119 | say `Settled 1 orphaned reservation(s) as abandoned after a restart`. | ||
| 120 | 3. Confirm the balance did not change, `pending_plays` is empty, and `plays` has | ||
| 121 | one row with `winnings = 0`, `details.result = "abandoned"` and | ||
| 122 | `details.reason = "server_restart"`. | ||
| 123 | |||
| 114 | ## Manual server checks | 124 | ## Manual server checks |
| 115 | 125 | ||
| 116 | - Register, log out, log in again (bcrypt path). | 126 | - Register, log out, log in again (bcrypt path). |
