forked from quic-go/quic-go
improve frames coverage and fix a small stream frame parsing bug
ref #241
This commit is contained in:
@@ -16,6 +16,11 @@ var _ = Describe("PingFrame", func() {
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(b.Len()).To(Equal(0))
|
||||
})
|
||||
|
||||
It("errors on EOFs", func() {
|
||||
_, err := ParsePingFrame(bytes.NewReader(nil))
|
||||
Expect(err).To(HaveOccurred())
|
||||
})
|
||||
})
|
||||
|
||||
Context("when writing", func() {
|
||||
|
||||
Reference in New Issue
Block a user