add option to write StreamFrames without Data length field

work towards #77
This commit is contained in:
Marten Seemann
2016-05-11 10:31:04 +07:00
parent bdf53744ac
commit 41fa096480
3 changed files with 77 additions and 14 deletions

View File

@@ -420,7 +420,7 @@ var _ = Describe("Session", func() {
})
It("should call OnSent", func() {
session.QueueStreamFrame(&frames.StreamFrame{StreamID: 5})
session.QueueStreamFrame(&frames.StreamFrame{StreamID: 5, DataLenPresent: true})
session.sendPacket()
Expect(cong.nCalls).To(Equal(2)) // OnPacketSent + GetCongestionWindow
Expect(cong.argsOnPacketSent[1]).To(Equal(protocol.ByteCount(27)))