Skip to content

Commit

Permalink
chore: clean up needless test code
Browse files Browse the repository at this point in the history
  • Loading branch information
panjf2000 committed Aug 18, 2024
1 parent 2750d40 commit 7b23091
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,9 +501,8 @@ func (s *testServer) OnClose(c Conn, err error) (action Action) {
if err != nil {
logging.Debugf("error occurred on closed, %v\n", err)
}
if c.LocalAddr().Network() != "udp" {
require.Equal(s.tester, c.Context(), c, "invalid context")
}

require.Equal(s.tester, c.Context(), c, "invalid context")

atomic.AddInt32(&s.disconnected, 1)
return
Expand Down

0 comments on commit 7b23091

Please sign in to comment.