initialize StreamFrameQueue in Session, not in PacketPacker

This commit is contained in:
Marten Seemann 2016-06-10 19:06:40 +07:00
parent 478e4c95e1
commit b1c27b5eca
3 changed files with 7 additions and 24 deletions

View file

@ -454,14 +454,4 @@ var _ = Describe("Packet packer", func() {
Expect(p[0]).To(Equal(&frames.BlockedFrame{StreamID: 0}))
})
})
It("says whether it is empty", func() {
Expect(packer.Empty()).To(BeTrue())
f := frames.StreamFrame{
StreamID: 5,
Data: []byte{0xDE, 0xCA, 0xFB, 0xAD},
}
packer.AddStreamFrame(f)
Expect(packer.Empty()).To(BeFalse())
})
})