forked from quic-go/quic-go
implement stateless handling of Initial packets for the TLS server
This commit is contained in:
@@ -266,6 +266,12 @@ var _ = Describe("Stream", func() {
|
||||
Expect(onDataCalled).To(BeTrue())
|
||||
})
|
||||
|
||||
It("sets the read offset", func() {
|
||||
str.SetReadOffset(0x42)
|
||||
Expect(str.readOffset).To(Equal(protocol.ByteCount(0x42)))
|
||||
Expect(str.frameQueue.readPosition).To(Equal(protocol.ByteCount(0x42)))
|
||||
})
|
||||
|
||||
Context("deadlines", func() {
|
||||
It("the deadline error has the right net.Error properties", func() {
|
||||
Expect(errDeadline.Temporary()).To(BeTrue())
|
||||
|
||||
Reference in New Issue
Block a user