remove test for even stream IDs

While the spec demands that clients don't open streams with even IDs, it
doesn't require validation and there are no security implications.
This commit is contained in:
Lucas Clemente
2016-08-08 18:31:50 +02:00
parent 3432a632f0
commit aac155a49e

View File

@@ -133,14 +133,6 @@ var _ = Describe("Session", func() {
Expect(p).To(Equal([]byte{0xde, 0xca, 0xfb, 0xad}))
})
PIt("rejects streams with even StreamIDs", func() {
err := session.handleStreamFrame(&frames.StreamFrame{
StreamID: 4,
Data: []byte{0xde, 0xca, 0xfb, 0xad},
})
Expect(err).To(MatchError(qerr.InvalidStreamID))
})
It("does not reject existing streams with even StreamIDs", func() {
_, err := session.GetOrOpenStream(4)
Expect(err).ToNot(HaveOccurred())