diff options
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) |
