aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/roulette_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/casino/roulette_test.go')
-rw-r--r--internal/casino/roulette_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/casino/roulette_test.go b/internal/casino/roulette_test.go
index 9a62236..97bff2a 100644
--- a/internal/casino/roulette_test.go
+++ b/internal/casino/roulette_test.go
@@ -277,6 +277,7 @@ func TestRouletteTimedPhasesAndSettlement(t *testing.T) {
wheel := rouletteWheel(double)
index := rand.New(rand.NewSource(7)).Intn(len(wheel))
table.join("a")
+ table.join("idle")
w := &testWallet{chips: 100}
table.bet("a", wheel[index], 10, w)
table.bet("a", "red", 10, w)
@@ -325,6 +326,7 @@ func TestRouletteTimedPhasesAndSettlement(t *testing.T) {
func TestRouletteBetDoesNotRedrawBoard(t *testing.T) {
table := rouletteFixture()
table.join("a")
+ table.join("idle")
events := table.bet("a", "red", 10, &testWallet{chips: 100})
for _, e := range events {
if e.Snapshot != nil {
@@ -344,6 +346,7 @@ func TestRouletteRefundAndPersistenceFailure(t *testing.T) {
for _, spinning := range []bool{false, true} {
table := rouletteFixture()
table.join("a")
+ table.join("idle")
w := &testWallet{chips: 100}
table.bet("a", "red", 10, w)
if spinning {