diff options
| author | historia <[not public]> | 2026-08-03 16:18:17 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-08-03 16:19:25 -0400 |
| commit | f2c4a58727169a03b8102704888d1579d26b28c8 (patch) | |
| tree | a334f9cd37b3c7521c11d266d797b208dac4f3be /internal/casino/manager_test.go | |
| parent | 612e429de438821ae8e099d6b54f87c11ff6c1b5 (diff) | |
| download | thehouseoficarus-f2c4a58727169a03b8102704888d1579d26b28c8.tar.gz | |
feat: multiplayer baccarat game
Diffstat (limited to 'internal/casino/manager_test.go')
| -rw-r--r-- | internal/casino/manager_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/casino/manager_test.go b/internal/casino/manager_test.go index 8d6dd3d..f0809be 100644 --- a/internal/casino/manager_test.go +++ b/internal/casino/manager_test.go @@ -37,7 +37,7 @@ func TestSoloBetResolvesImmediately(t *testing.T) { cfg := TableConfig{ID: "slots", Game: GameSlots} m.Join(1, cfg, "alice") w := &testWallet{credits: 100} - events := m.Bet(1, "slots", "alice", 10, w) + events := m.Bet(1, "slots", "alice", "", 10, w) found := false for _, event := range events { if event.Type == EventRoundStarted { @@ -55,13 +55,13 @@ func TestMultiplePlayersWaitForBets(t *testing.T) { m.Join(1, cfg, "alice") m.Join(1, cfg, "bob") wa, wb := &testWallet{credits: 100}, &testWallet{credits: 100} - events := m.Bet(1, "slots", "alice", 10, wa) + events := m.Bet(1, "slots", "alice", "", 10, wa) for _, event := range events { if event.Type == EventRoundStarted { t.Fatal("round started before all players bet or timeout") } } - m.Bet(1, "slots", "bob", 10, wb) + m.Bet(1, "slots", "bob", "", 10, wb) } func TestTableBettingIgnoresDisconnected(t *testing.T) { @@ -71,7 +71,7 @@ func TestTableBettingIgnoresDisconnected(t *testing.T) { m.Join(1, cfg, "bob") m.MarkDisconnected("bob") w := &testWallet{credits: 100} - events := m.Bet(1, "slots", "alice", 10, w) + events := m.Bet(1, "slots", "alice", "", 10, w) found := false for _, event := range events { if event.Type == EventRoundStarted { |
