From 9666676766bf21364f4fc4d0d1d336e72f2a91b4 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 6 Oct 2026 12:57:23 -0400 Subject: refactor: split casino.go, dedup helpers, remove audit docs --- internal/game/hardening_tick_lifecycle_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'internal/game/hardening_tick_lifecycle_test.go') diff --git a/internal/game/hardening_tick_lifecycle_test.go b/internal/game/hardening_tick_lifecycle_test.go index d9a348a..f230ad7 100644 --- a/internal/game/hardening_tick_lifecycle_test.go +++ b/internal/game/hardening_tick_lifecycle_test.go @@ -22,7 +22,7 @@ import ( // master tick subscriber can fire before SetHub during startup. func TestFireTickNilHubIsSafe(t *testing.T) { t.Run("nil_hub_burning_fire", func(t *testing.T) { - g := escapeTestGame() + g := escapeTestGame(t) // Quality 1 burns out on this tick, which is the path that touches // the hub; without the guard it panics on g.Hub == nil. g.World.AddObjInstance(1, "fire", 1) @@ -52,7 +52,7 @@ func TestFireTickNilHubIsSafe(t *testing.T) { // g.sequences: map iteration randomly chose which simultaneous sequence // advanced first, contradicting the deterministic-order contract. func TestSequenceTickFiresInDeterministicOrder(t *testing.T) { - g := escapeTestGame() + g := escapeTestGame(t) g.sequences = make(map[string]*sequence) g.loggedInChars = make(map[string]*net.Session) @@ -171,7 +171,7 @@ func wanderTestSession(h *harness, name string, roomID int) *chanConn { func TestAggroRetryStopsForDepartedPlayer(t *testing.T) { t.Run("player_detached", func(t *testing.T) { defer patchAggroRand(0.5)() - g := escapeTestGame() + g := escapeTestGame(t) spawnTestMob(g, 100) p := player.New("aggro_ghost") p.RoomID = 100 @@ -193,7 +193,7 @@ func TestAggroRetryStopsForDepartedPlayer(t *testing.T) { t.Run("session_disconnecting", func(t *testing.T) { defer patchAggroRand(0.5)() - g := escapeTestGame() + g := escapeTestGame(t) spawnTestMob(g, 150) p := player.New("aggro_offline") p.RoomID = 150 @@ -211,7 +211,7 @@ func TestAggroRetryStopsForDepartedPlayer(t *testing.T) { t.Run("replaced_by_new_session", func(t *testing.T) { defer patchAggroRand(0.5)() - g := escapeTestGame() + g := escapeTestGame(t) spawnTestMob(g, 200) p := player.New("aggro_relogin") p.RoomID = 200 @@ -230,7 +230,7 @@ func TestAggroRetryStopsForDepartedPlayer(t *testing.T) { t.Run("live_session_still_rolls", func(t *testing.T) { defer patchAggroRand(0.5)() - g := escapeTestGame() + g := escapeTestGame(t) spawnTestMob(g, 300) p := player.New("aggro_live") p.RoomID = 300 -- cgit v1.2.3