use the error names from the draft

This commit is contained in:
Marten Seemann
2019-03-06 13:39:38 +09:00
parent 9c09e84765
commit 662041649f
11 changed files with 64 additions and 59 deletions

View File

@@ -75,7 +75,7 @@ var _ = Describe("STREAM frame", func() {
data = append(data, []byte("foobar")...)
r := bytes.NewReader(data)
_, err := parseStreamFrame(r, versionIETFFrames)
Expect(err).To(MatchError("FrameEncodingError: stream data overflows maximum offset"))
Expect(err).To(MatchError("FRAME_ENCODING_ERROR: stream data overflows maximum offset"))
})
It("errors on EOFs", func() {