forked from quic-go/quic-go
protocol: remove VersionWhatever, previously used for testing (#3763)
This commit is contained in:
@@ -14,7 +14,7 @@ var _ = Describe("PATH_CHALLENGE frame", func() {
|
||||
Context("when parsing", func() {
|
||||
It("accepts sample frame", func() {
|
||||
b := bytes.NewReader([]byte{1, 2, 3, 4, 5, 6, 7, 8})
|
||||
f, err := parsePathChallengeFrame(b, protocol.VersionWhatever)
|
||||
f, err := parsePathChallengeFrame(b, protocol.Version1)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(b.Len()).To(BeZero())
|
||||
Expect(f.Data).To(Equal([8]byte{1, 2, 3, 4, 5, 6, 7, 8}))
|
||||
@@ -35,14 +35,14 @@ var _ = Describe("PATH_CHALLENGE frame", func() {
|
||||
Context("when writing", func() {
|
||||
It("writes a sample frame", func() {
|
||||
frame := PathChallengeFrame{Data: [8]byte{0xde, 0xad, 0xbe, 0xef, 0xca, 0xfe, 0x13, 0x37}}
|
||||
b, err := frame.Append(nil, protocol.VersionWhatever)
|
||||
b, err := frame.Append(nil, protocol.Version1)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(b).To(Equal([]byte{pathChallengeFrameType, 0xde, 0xad, 0xbe, 0xef, 0xca, 0xfe, 0x13, 0x37}))
|
||||
})
|
||||
|
||||
It("has the correct length", func() {
|
||||
frame := PathChallengeFrame{}
|
||||
Expect(frame.Length(protocol.VersionWhatever)).To(Equal(protocol.ByteCount(9)))
|
||||
Expect(frame.Length(protocol.Version1)).To(Equal(protocol.ByteCount(9)))
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user