diff options
| author | historia <[not public]> | 2026-08-03 16:42:59 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-08-03 16:42:59 -0400 |
| commit | adda27dba5bf7bf1dee62159f0cbc0bd90734751 (patch) | |
| tree | 2a68c0bad42c3561cfcd7a32eee52f7ff7eb14f9 /internal/casino/manager_test.go | |
| parent | fe15f2ffeb5685b056650a61aa0e23965ef51e95 (diff) | |
| download | thehouseoficarus-adda27dba5bf7bf1dee62159f0cbc0bd90734751.tar.gz | |
fix: blackjack game formatting
Diffstat (limited to 'internal/casino/manager_test.go')
| -rw-r--r-- | internal/casino/manager_test.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/casino/manager_test.go b/internal/casino/manager_test.go index f0809be..818f397 100644 --- a/internal/casino/manager_test.go +++ b/internal/casino/manager_test.go @@ -87,8 +87,13 @@ func TestMachineAutobetCountdownAndStop(t *testing.T) { m := NewManager(1) cfg := MachineConfig{ID: "slots", Game: GameSlots, SpinTicks: 1} m.JoinMachine(1, cfg, "alice") - m.SetMachineBet(1, "slots", "alice", 10) w := &testWallet{credits: 100} + if events := m.SetMachineBet(1, "slots", "alice", 10, w); len(events) == 0 { + t.Fatalf("setting a bet did not start a spin: %+v", events) + } + for m.MachineBusy("alice") { + m.Tick() + } if events := m.EnableMachineAutoBet(1, "slots", "alice", w); len(events) != 0 { t.Fatalf("enabling autobet emitted events before countdown: %+v", events) } |
