aboutsummaryrefslogtreecommitdiff
path: root/internal/game/hardening_credit_cap_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/hardening_credit_cap_test.go')
-rw-r--r--internal/game/hardening_credit_cap_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/game/hardening_credit_cap_test.go b/internal/game/hardening_credit_cap_test.go
index 872c746..05b0aeb 100644
--- a/internal/game/hardening_credit_cap_test.go
+++ b/internal/game/hardening_credit_cap_test.go
@@ -23,7 +23,7 @@ func TestPickupCreditsAtCapLeavesRemainderOnGround(t *testing.T) {
sess := &net.Session{Conn: newChanConn(), Player: p}
sess.SetState(net.StateGame)
- h.g.pickupCredits(sess, p, "credits")
+ h.g.pickupCredits(sess, p, "credits", 0)
if p.Credits != casino.MaxCredits {
t.Errorf("balance = %d, want the cap %d", p.Credits, casino.MaxCredits)
@@ -44,7 +44,7 @@ func TestPickupCreditsAtCapDestroysNothing(t *testing.T) {
sess := &net.Session{Conn: newChanConn(), Player: p}
sess.SetState(net.StateGame)
- h.g.pickupCredits(sess, p, "credits")
+ h.g.pickupCredits(sess, p, "credits", 0)
if p.Credits != casino.MaxCredits {
t.Errorf("balance = %d, want the cap %d", p.Credits, casino.MaxCredits)