better function name in SentPacketHandler

This commit is contained in:
Marten Seemann
2016-05-24 15:39:48 +07:00
parent 9539169fa4
commit 931687e9a4
5 changed files with 8 additions and 8 deletions

View File

@@ -589,10 +589,10 @@ var _ = Describe("SentPacketHandler", func() {
})
It("allows or denies sending", func() {
Expect(handler.AllowsSending()).To(BeTrue())
Expect(handler.CongestionAllowsSending()).To(BeTrue())
err := handler.SentPacket(&Packet{PacketNumber: 1, Frames: []frames.Frame{}, Length: protocol.DefaultTCPMSS + 1})
Expect(err).NotTo(HaveOccurred())
Expect(handler.AllowsSending()).To(BeFalse())
Expect(handler.CongestionAllowsSending()).To(BeFalse())
})
It("should call OnRetransmissionTimeout", func() {