run ineffassign in gometalinter

This commit is contained in:
Marten Seemann 2018-02-21 15:15:21 +08:00
parent 548916e902
commit 37aa577560
5 changed files with 6 additions and 1 deletions

View file

@ -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)