mirror of
https://github.com/CPunch/gopenfusion.git
synced 2024-11-21 06:50:06 +00:00
login_test: fix sendAndRecv
removed the stale typecast lol
This commit is contained in:
parent
e1b9fa5d99
commit
cba01a877d
@ -63,7 +63,7 @@ func sendAndRecv(peer *cnet.Peer, recv chan *cnet.PacketEvent, is *is.I, sID, rI
|
||||
|
||||
// receive login response
|
||||
evnt := <-recv
|
||||
is.Equal(int(evnt.PktID), rID) // should receive expected type
|
||||
is.Equal(evnt.PktID, rID) // should receive expected type
|
||||
|
||||
err = protocol.NewPacket(evnt.Pkt).Decode(in)
|
||||
is.NoErr(err) // packet.Decode() should not return an error
|
||||
|
Loading…
Reference in New Issue
Block a user