forked from quic-go/quic-go
remove unused perspective arg from packetHandlerMap.ReplaceWithClosed (#4330)
This commit is contained in:
@@ -118,7 +118,7 @@ var _ = Describe("Packet Handler Map", func() {
|
||||
handler := NewMockPacketHandler(mockCtrl)
|
||||
connID := protocol.ParseConnectionID([]byte{4, 3, 2, 1})
|
||||
Expect(m.Add(connID, handler)).To(BeTrue())
|
||||
m.ReplaceWithClosed([]protocol.ConnectionID{connID}, protocol.PerspectiveClient, []byte("foobar"))
|
||||
m.ReplaceWithClosed([]protocol.ConnectionID{connID}, []byte("foobar"))
|
||||
h, ok := m.Get(connID)
|
||||
Expect(ok).To(BeTrue())
|
||||
Expect(h).ToNot(Equal(handler))
|
||||
@@ -141,7 +141,7 @@ var _ = Describe("Packet Handler Map", func() {
|
||||
handler := NewMockPacketHandler(mockCtrl)
|
||||
connID := protocol.ParseConnectionID([]byte{4, 3, 2, 1})
|
||||
Expect(m.Add(connID, handler)).To(BeTrue())
|
||||
m.ReplaceWithClosed([]protocol.ConnectionID{connID}, protocol.PerspectiveClient, nil)
|
||||
m.ReplaceWithClosed([]protocol.ConnectionID{connID}, nil)
|
||||
h, ok := m.Get(connID)
|
||||
Expect(ok).To(BeTrue())
|
||||
Expect(h).ToNot(Equal(handler))
|
||||
|
||||
Reference in New Issue
Block a user