aboutsummaryrefslogtreecommitdiff
path: root/internal/game/owner_disconnect_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/owner_disconnect_test.go')
-rw-r--r--internal/game/owner_disconnect_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/game/owner_disconnect_test.go b/internal/game/owner_disconnect_test.go
index 9140a40..81196a4 100644
--- a/internal/game/owner_disconnect_test.go
+++ b/internal/game/owner_disconnect_test.go
@@ -50,7 +50,8 @@ func TestDisconnectTickHardRemoveCompletesOnOwner(t *testing.T) {
// loaded player through Hub.Remove, which runs the same onRemove callback.
func TestHubRemoveNilPlayerOnOwner(t *testing.T) {
h := newHarness(t)
- sess := &net.Session{Conn: newChanConn(), State: net.StateAccountName}
+ sess := &net.Session{Conn: newChanConn()}
+ sess.SetState(net.StateAccountName)
sess.StartWriter()
h.hub.Add(sess)