diff options
| author | historia <[not public]> | 2026-09-16 21:35:55 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-16 21:35:55 -0400 |
| commit | fea2cc6839ec3ee17940a2dea69622dc6f4deabf (patch) | |
| tree | 9d893525ca20d2cc920e9e866f84f71b605d8ae9 /internal/game/shutdown_admission_test.go | |
| parent | 35ddd0ad2215760bb1d3dc7724480f179ea33fa6 (diff) | |
| download | thehouseoficarus-fea2cc6839ec3ee17940a2dea69622dc6f4deabf.tar.gz | |
fix: unify crafting ingredient resolution; fix superheat alternatives, quantity gates, and dropped combine byproducts
Diffstat (limited to 'internal/game/shutdown_admission_test.go')
| -rw-r--r-- | internal/game/shutdown_admission_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/game/shutdown_admission_test.go b/internal/game/shutdown_admission_test.go index a7e7ee2..db31648 100644 --- a/internal/game/shutdown_admission_test.go +++ b/internal/game/shutdown_admission_test.go @@ -17,7 +17,7 @@ func TestShutdownRejectsSessionInput(t *testing.T) { h.seedAccount("alice") h.seedCharacter("alice", "alice") sess, _ := h.connect("alice") - sess.State = net.StateGame + sess.SetState(net.StateGame) h.g.setShuttingDown() h.g.stopOwner() @@ -28,7 +28,7 @@ func TestShutdownRejectsSessionInput(t *testing.T) { // A durable mutation gives an unambiguous admission check: description // input would rewrite the character. - sess.State = net.StateChangeDesc + sess.SetState(net.StateChangeDesc) h.g.HandleSessionOnOwner(sess, "Input after final save") if sess.Player.Description == "Input after final save" { t.Error("session input still mutates character after shutdown/owner stop") @@ -40,13 +40,13 @@ func TestShutdownRejectsInputDuringDrain(t *testing.T) { h.seedAccount("alice") h.seedCharacter("alice", "alice") sess, _ := h.connect("alice") - sess.State = net.StateGame + sess.SetState(net.StateGame) h.g.setShuttingDown() // During the drain window the owner is still alive, but new input is // already rejected: only work accepted before shutdown executes. h.g.HandleSessionOnOwner(sess, "look") - sess.State = net.StateChangeDesc + sess.SetState(net.StateChangeDesc) h.g.HandleSessionOnOwner(sess, "Input during drain") if sess.Player.Description == "Input during drain" { t.Error("session input accepted after shutdown began") |
