improve overlapping stream data errors

ref #259
This commit is contained in:
Lucas Clemente 2016-08-06 17:08:23 +02:00
parent 2f94a44b24
commit 71a8af827b
3 changed files with 10 additions and 12 deletions

View file

@ -285,7 +285,7 @@ var _ = Describe("Stream", func() {
err := str.AddStreamFrame(&frame1)
Expect(err).ToNot(HaveOccurred())
err = str.AddStreamFrame(&frame2)
Expect(err).To(MatchError(errOverlappingStreamData))
Expect(err).To(MatchError("OverlappingStreamData: start of gap in stream chunk"))
})
It("calls onData", func() {