diff --git a/.gometalinter.json b/.gometalinter.json index 88938d40..b3eeb05a 100644 --- a/.gometalinter.json +++ b/.gometalinter.json @@ -12,6 +12,7 @@ "misspell", "structcheck", "unconvert", + "unused", "varcheck", "vet" ], diff --git a/internal/ackhandler/sent_packet_handler_test.go b/internal/ackhandler/sent_packet_handler_test.go index 3a40f6bc..f964ddbf 100644 --- a/internal/ackhandler/sent_packet_handler_test.go +++ b/internal/ackhandler/sent_packet_handler_test.go @@ -826,7 +826,7 @@ var _ = Describe("SentPacketHandler", func() { }) It("does not detect packets as lost without ACKs", func() { - err := handler.SentPacket(&Packet{PacketNumber: 1, Length: 1}) + err := handler.SentPacket(nonRetransmittablePacket(1)) Expect(err).NotTo(HaveOccurred()) err = handler.SentPacket(retransmittablePacket(2)) Expect(err).NotTo(HaveOccurred())