aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/live_owner_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/admin/live_owner_test.go')
-rw-r--r--internal/admin/live_owner_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/admin/live_owner_test.go b/internal/admin/live_owner_test.go
index 7e94a1e..e975681 100644
--- a/internal/admin/live_owner_test.go
+++ b/internal/admin/live_owner_test.go
@@ -219,7 +219,8 @@ func newEditorHarness(t *testing.T) (*editorHarness, *gamenet.Session) {
if err := g.AccountStore.SaveCharacter(p); err != nil {
t.Fatal(err)
}
- sess := &gamenet.Session{Conn: discardConn{}, Account: acc, Player: p, State: gamenet.StateGame}
+ sess := &gamenet.Session{Conn: discardConn{}, Account: acc, Player: p}
+ sess.SetState(gamenet.StateGame)
hub.Add(sess)
hub.EnterRoom(sess, 1)
g.Ticks.Start(2)