add flow control to streamFramer

ref #83
This commit is contained in:
Lucas Clemente
2016-07-08 12:21:06 +02:00
parent 81ae6d44ec
commit 3cbf16b66f
3 changed files with 149 additions and 268 deletions

View File

@@ -342,6 +342,10 @@ var _ = Describe("Stream", func() {
Expect(err).To(MatchError(testErr))
close(done)
})
It("getDataForWriting returns nil if no data is available", func() {
Expect(str.getDataForWriting(1000)).To(BeNil())
})
})
Context("closing", func() {