mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-05 13:17:36 +03:00
add support for QUIC v1, RFC 9000
This commit is contained in:
parent
540c6ec074
commit
68da2c4468
4 changed files with 12 additions and 16 deletions
|
@ -14,10 +14,10 @@ var _ = Describe("Version", func() {
|
|||
Expect(IsValidVersion(VersionTLS)).To(BeTrue())
|
||||
Expect(IsValidVersion(VersionWhatever)).To(BeFalse())
|
||||
Expect(IsValidVersion(VersionUnknown)).To(BeFalse())
|
||||
Expect(IsValidVersion(VersionDraft29)).To(BeFalse())
|
||||
Expect(IsValidVersion(VersionDraft32)).To(BeFalse())
|
||||
Expect(IsValidVersion(VersionDraft34)).To(BeFalse())
|
||||
Expect(IsValidVersion(Version1)).To(BeFalse())
|
||||
Expect(IsValidVersion(VersionDraft29)).To(BeTrue())
|
||||
Expect(IsValidVersion(VersionDraft32)).To(BeTrue())
|
||||
Expect(IsValidVersion(VersionDraft34)).To(BeTrue())
|
||||
Expect(IsValidVersion(Version1)).To(BeTrue())
|
||||
Expect(IsValidVersion(1234)).To(BeFalse())
|
||||
})
|
||||
|
||||
|
@ -47,6 +47,7 @@ var _ = Describe("Version", func() {
|
|||
})
|
||||
|
||||
It("has supported versions in sorted order", func() {
|
||||
Expect(SupportedVersions[0]).To(Equal(Version1))
|
||||
for i := 1; i < len(SupportedVersions)-1; i++ {
|
||||
Expect(SupportedVersions[i]).To(BeNumerically(">", SupportedVersions[i+1]))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue