diff options
| author | historia <[not public]> | 2026-10-06 12:57:23 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-06 12:57:23 -0400 |
| commit | 9666676766bf21364f4fc4d0d1d336e72f2a91b4 (patch) | |
| tree | 0cade34091d7602790dc38cd44053f0b74bbadf2 /internal/game/hardening_tick_lifecycle_test.go | |
| parent | 4bc1daaf259e0c19c5fe4a12ec8bc7f6e5a735c1 (diff) | |
| download | thehouseoficarus-9666676766bf21364f4fc4d0d1d336e72f2a91b4.tar.gz | |
refactor: split casino.go, dedup helpers, remove audit docs
Diffstat (limited to 'internal/game/hardening_tick_lifecycle_test.go')
| -rw-r--r-- | internal/game/hardening_tick_lifecycle_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
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 |
