diff options
| author | historia <[not public]> | 2026-09-16 17:05:17 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-16 17:05:17 -0400 |
| commit | 1dad15698845d370e998f7cc5feb8aece3fab58f (patch) | |
| tree | 8d58058782de9f422573e1f8efd5d130ce7d1ce9 /internal/game/owner_concurrency_test.go | |
| parent | a6cf03a6ae98e4fb675da25046d148e92bcf7206 (diff) | |
| download | thehouseoficarus-1dad15698845d370e998f7cc5feb8aece3fab58f.tar.gz | |
refactor: remove dead code, consolidate save/error handling, add lint gate
Diffstat (limited to 'internal/game/owner_concurrency_test.go')
| -rw-r--r-- | internal/game/owner_concurrency_test.go | 22 |
1 files changed, 11 insertions, 11 deletions
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) |
