diff --git a/login/login_test.go b/login/login_test.go index 2e171a4..358ef7e 100644 --- a/login/login_test.go +++ b/login/login_test.go @@ -103,9 +103,7 @@ func TestLoginSuccSequence(t *testing.T) { recv := make(chan *cnet.PacketEvent) peer := makeDummyPeer(ctx, is, recv) - defer func() { - peer.Kill() - }() + defer peer.Kill() // send login request (this should create an account) err := peer.Send(protocol.P_CL2LS_REQ_LOGIN, protocol.SP_CL2LS_REQ_LOGIN{