aboutsummaryrefslogtreecommitdiff
path: root/internal/game/account_registration_regression_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/account_registration_regression_test.go')
-rw-r--r--internal/game/account_registration_regression_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/game/account_registration_regression_test.go b/internal/game/account_registration_regression_test.go
index 42e7ad1..123ee10 100644
--- a/internal/game/account_registration_regression_test.go
+++ b/internal/game/account_registration_regression_test.go
@@ -17,8 +17,10 @@ func TestPendingRegistrationCannotOverwriteExistingAccount(t *testing.T) {
h.seedAccount("alice")
p := h.seedCharacter("alice", "alice")
- a := &net.Session{Conn: newChanConn(), State: net.StateAccountName}
- b := &net.Session{Conn: newChanConn(), State: net.StateAccountName}
+ a := &net.Session{Conn: newChanConn()}
+ a.SetState(net.StateAccountName)
+ b := &net.Session{Conn: newChanConn()}
+ b.SetState(net.StateAccountName)
h.g.RunOnOwner(func() {
// Both sessions type the same name while it does not exist yet;
// both reach the password-confirmation state.