From 1dad15698845d370e998f7cc5feb8aece3fab58f Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 16 Sep 2026 17:05:17 -0400 Subject: refactor: remove dead code, consolidate save/error handling, add lint gate --- internal/game/owner_concurrency_test.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'internal/game/owner_concurrency_test.go') diff --git a/internal/game/owner_concurrency_test.go b/internal/game/owner_concurrency_test.go index 58e426b..72cf878 100644 --- a/internal/game/owner_concurrency_test.go +++ b/internal/game/owner_concurrency_test.go @@ -16,16 +16,16 @@ import ( // and hub disconnects concurrently. func TestOwnerSerializesEntryPoints(t *testing.T) { h := newHarness(t) - h.seedAccount("alice", "pw", false) - h.seedAccount("bob", "pw", false) + h.seedAccount("alice") + h.seedAccount("bob") h.seedCharacter("alice", "alice") h.seedCharacter("bob", "bob") aSess, _ := h.connect("alice") bSess, _ := h.connect("bob") - aLines := h.goInput(aSess, 1) - bLines := h.goInput(bSess, 1) + aLines := h.goInput(aSess) + bLines := h.goInput(bSess) var wg sync.WaitGroup wg.Add(2) @@ -61,10 +61,10 @@ func TestOwnerSerializesEntryPoints(t *testing.T) { // concurrently with live movement and ticking. func TestOwnerAdminRewriteWhilePlaying(t *testing.T) { h := newHarness(t) - h.seedAccount("carol", "pw", false) + h.seedAccount("carol") h.seedCharacter("carol", "carol") sess, _ := h.connect("carol") - lines := h.goInput(sess, 1) + lines := h.goInput(sess) var wg sync.WaitGroup wg.Add(2) @@ -93,8 +93,8 @@ func TestOwnerAdminRewriteWhilePlaying(t *testing.T) { // players from receiving output and progressing. func TestSlowClientDoesNotStallTheWorld(t *testing.T) { h := newHarness(t) - h.seedAccount("alice", "pw", false) - h.seedAccount("bob", "pw", false) + h.seedAccount("alice") + h.seedAccount("bob") h.seedCharacter("alice", "alice") h.seedCharacter("bob", "bob") @@ -105,7 +105,7 @@ func TestSlowClientDoesNotStallTheWorld(t *testing.T) { bSess, bConn := h.connect("bob") aConn.writeGate = make(chan struct{}) - bLines := h.goInput(bSess, 1) + bLines := h.goInput(bSess) for i := 0; i < 300; i++ { aSess.WriteLine("spam for the stalled client") @@ -127,11 +127,11 @@ func TestSlowClientDoesNotStallTheWorld(t *testing.T) { // (save + registry cleanup) serializes with session input on the owner. func TestOwnerDisconnectDuringInput(t *testing.T) { h := newHarness(t) - h.seedAccount("dave", "pw", false) + h.seedAccount("dave") h.seedCharacter("dave", "dave") sess, conn := h.connect("dave") - lines := h.goInput(sess, 1) + lines := h.goInput(sess) done := make(chan struct{}) go func() { defer close(done) -- cgit v1.2.3