remove unneccessary destroy of the session when retiring a connection ID

This commit is contained in:
Marten Seemann 2019-11-01 11:33:28 +07:00
parent afc7c10918
commit e55a14b8f0
2 changed files with 2 additions and 14 deletions

View file

@ -139,7 +139,6 @@ var _ = Describe("Packet Handler Map", func() {
connID := protocol.ConnectionID{1, 2, 3, 4, 5, 6, 7, 8}
sess := NewMockPacketHandler(mockCtrl)
handler.Add(connID, sess)
sess.EXPECT().destroy(gomock.Any())
handler.Retire(connID)
time.Sleep(scaleDuration(30 * time.Millisecond))
handler.handlePacket(nil, nil, getPacket(connID))