aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/machine_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/casino/machine_test.go')
-rw-r--r--internal/casino/machine_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/casino/machine_test.go b/internal/casino/machine_test.go
index 349a452..73687b2 100644
--- a/internal/casino/machine_test.go
+++ b/internal/casino/machine_test.go
@@ -14,11 +14,11 @@ func TestBetRangeTextFormatsUnlimitedMax(t *testing.T) {
}
}
-func TestMachineSetBetUnlimitedMaxMessage(t *testing.T) {
+func TestMachineSetBetUnsetDefaultMaxMessage(t *testing.T) {
m := newMachine(1, MachineConfig{ID: "slots", Game: GameSlots, MinBet: 1}, rand.New(rand.NewSource(7)))
m.player = &Participant{Name: "alice", Connected: true}
events := m.setBet("alice", 0, &testWallet{credits: 100})
- if !hasMessage(events, "Slot machine bets must be 1 or more (no maximum).") {
+ if !hasMessage(events, "Slot machine bets must be between 1 and 1000000.") {
t.Fatalf("unexpected bet-range message: %+v", events)
}
}