forked from quic-go/quic-go
introduce invalid stream ID to simplify the outgoing streams map
This commit is contained in:
@@ -6,6 +6,10 @@ import (
|
||||
)
|
||||
|
||||
var _ = Describe("Stream ID", func() {
|
||||
It("InvalidStreamID is smaller than all valid stream IDs", func() {
|
||||
Expect(InvalidStreamID).To(BeNumerically("<", 0))
|
||||
})
|
||||
|
||||
It("says who initiated a stream", func() {
|
||||
Expect(StreamID(4).InitiatedBy()).To(Equal(PerspectiveClient))
|
||||
Expect(StreamID(5).InitiatedBy()).To(Equal(PerspectiveServer))
|
||||
|
||||
Reference in New Issue
Block a user