mirror of
https://github.com/CPunch/gopenfusion.git
synced 2025-12-20 09:30:03 +00:00
removed useless closure
This commit is contained in:
@@ -103,9 +103,7 @@ func TestLoginSuccSequence(t *testing.T) {
|
|||||||
|
|
||||||
recv := make(chan *cnet.PacketEvent)
|
recv := make(chan *cnet.PacketEvent)
|
||||||
peer := makeDummyPeer(ctx, is, recv)
|
peer := makeDummyPeer(ctx, is, recv)
|
||||||
defer func() {
|
defer peer.Kill()
|
||||||
peer.Kill()
|
|
||||||
}()
|
|
||||||
|
|
||||||
// send login request (this should create an account)
|
// send login request (this should create an account)
|
||||||
err := peer.Send(protocol.P_CL2LS_REQ_LOGIN, protocol.SP_CL2LS_REQ_LOGIN{
|
err := peer.Send(protocol.P_CL2LS_REQ_LOGIN, protocol.SP_CL2LS_REQ_LOGIN{
|
||||||
|
|||||||
Reference in New Issue
Block a user