From cba01a877d6a1c8fb36712e60e9b5aff4284b7c6 Mon Sep 17 00:00:00 2001 From: CPunch Date: Wed, 6 Dec 2023 20:17:36 -0600 Subject: [PATCH] login_test: fix sendAndRecv removed the stale typecast lol --- login/login_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login/login_test.go b/login/login_test.go index 1b736d0..72d95a3 100644 --- a/login/login_test.go +++ b/login/login_test.go @@ -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