mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-05 05:07:36 +03:00
run ineffassign in gometalinter
This commit is contained in:
parent
548916e902
commit
37aa577560
5 changed files with 6 additions and 1 deletions
|
@ -392,6 +392,7 @@ var _ = Describe("Server", func() {
|
|||
|
||||
It("ignores public resets for known connections", func() {
|
||||
err := serv.handlePacket(nil, nil, firstPacket)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(serv.sessions).To(HaveLen(1))
|
||||
Expect(serv.sessions[connID].(*mockSession).packetCount).To(Equal(1))
|
||||
err = serv.handlePacket(nil, nil, wire.WritePublicReset(connID, 1, 1337))
|
||||
|
@ -402,6 +403,7 @@ var _ = Describe("Server", func() {
|
|||
|
||||
It("ignores invalid public resets for known connections", func() {
|
||||
err := serv.handlePacket(nil, nil, firstPacket)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(serv.sessions).To(HaveLen(1))
|
||||
Expect(serv.sessions[connID].(*mockSession).packetCount).To(Equal(1))
|
||||
data := wire.WritePublicReset(connID, 1, 1337)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue