diff options
Diffstat (limited to 'internal/game/economy_recovery_regression_test.go')
| -rw-r--r-- | internal/game/economy_recovery_regression_test.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/game/economy_recovery_regression_test.go b/internal/game/economy_recovery_regression_test.go index 0e764ca..1bb3293 100644 --- a/internal/game/economy_recovery_regression_test.go +++ b/internal/game/economy_recovery_regression_test.go @@ -339,9 +339,11 @@ func TestRecoveryRestoresChipsFromMixedRefundCrash(t *testing.T) { t.Error(err) return } - // Crash during RefundOutstanding, after the credit-side payout was - // journaled but before anything beyond the debit was durable. - if _, err := h.g.Economy.start("payout", p, 0, 10, 90, 100, 10, 10); err != nil { + // Crash during RefundOutstanding, after the credit-side REFUND + // payout was journaled but before anything beyond the debit was + // durable. The record is refund-flagged: recovery re-applies the + // refund credit AND returns the chip part of the stake in chips. + if _, err := h.g.Economy.startRefund(p, 10, 90, 100); err != nil { t.Error(err) return } |
