ignore data for closed streams

This commit is contained in:
Lucas Clemente
2016-05-17 12:48:54 +02:00
parent d0e6b993bb
commit 90abb40ffc
2 changed files with 4 additions and 5 deletions

View File

@@ -237,7 +237,7 @@ var _ = Describe("Session", func() {
Expect(session.streams[5]).To(BeNil())
})
It("rejects streams that existed previously", func() {
It("ignores streams that existed previously", func() {
session.handleStreamFrame(&frames.StreamFrame{
StreamID: 5,
Data: []byte{},
@@ -251,7 +251,7 @@ var _ = Describe("Session", func() {
StreamID: 5,
Data: []byte{},
})
Expect(err).To(MatchError(errReopeningStreamsNotAllowed))
Expect(err).To(BeNil())
})
})