handle ACKs separately in the sent packet handler packet struct

This commit is contained in:
Marten Seemann
2019-04-21 20:37:18 +09:00
parent ae685f9d42
commit 5d999f3927
6 changed files with 25 additions and 33 deletions

View File

@@ -27,15 +27,6 @@ var _ = Describe("ack-eliciting frames", func() {
Expect(IsFrameAckEliciting(f)).To(Equal(e))
})
It("stripping non-ack-elicinting frames works for "+fName, func() {
s := []wire.Frame{f}
if e {
Expect(stripNonAckElicitingFrames(s)).To(Equal([]wire.Frame{f}))
} else {
Expect(stripNonAckElicitingFrames(s)).To(BeEmpty())
}
})
It("HasAckElicitingFrames works for "+fName, func() {
Expect(HasAckElicitingFrames([]wire.Frame{f})).To(Equal(e))
})