aboutsummaryrefslogtreecommitdiff
path: root/internal/game/login_offowner_regression_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/login_offowner_regression_test.go')
-rw-r--r--internal/game/login_offowner_regression_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/game/login_offowner_regression_test.go b/internal/game/login_offowner_regression_test.go
index 327de7e..fa8324c 100644
--- a/internal/game/login_offowner_regression_test.go
+++ b/internal/game/login_offowner_regression_test.go
@@ -51,7 +51,8 @@ func TestLoginThroughServerEntryUsesOffOwnerPathAndUpgradesLegacyHash(t *testing
}
conn := newChanConn()
- sess := &net.Session{Conn: conn, State: net.StateAccountName}
+ sess := &net.Session{Conn: conn}
+ sess.SetState(net.StateAccountName)
sess.StartWriter()
lines := make(chan string, 8)
go h.input(sess, lines)
@@ -83,7 +84,8 @@ func TestLoginThroughServerEntryUsesOffOwnerPathAndUpgradesLegacyHash(t *testing
func TestNewAccountThroughServerEntryHashesOffOwner(t *testing.T) {
h := newHarness(t)
conn := newChanConn()
- sess := &net.Session{Conn: conn, State: net.StateAccountName}
+ sess := &net.Session{Conn: conn}
+ sess.SetState(net.StateAccountName)
sess.StartWriter()
lines := make(chan string, 8)
go h.input(sess, lines)