From aac155a49e9118451c1cf8205907574c0d53d0ea Mon Sep 17 00:00:00 2001 From: Lucas Clemente Date: Mon, 8 Aug 2016 18:31:50 +0200 Subject: [PATCH] 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. --- session_test.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/session_test.go b/session_test.go index ab220293..01dcc94b 100644 --- a/session_test.go +++ b/session_test.go @@ -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())