make it possible to set settings unknown to the http3 package

This commit is contained in:
Marten Seemann
2022-03-22 10:22:15 +01:00
parent 57461e01b5
commit a54816867f
8 changed files with 27 additions and 17 deletions

View File

@@ -85,8 +85,8 @@ var _ = Describe("Frames", func() {
Expect(err).ToNot(HaveOccurred())
Expect(frame).To(BeAssignableToTypeOf(&settingsFrame{}))
sf := frame.(*settingsFrame)
Expect(sf.other).To(HaveKeyWithValue(uint64(13), uint64(37)))
Expect(sf.other).To(HaveKeyWithValue(uint64(0xdead), uint64(0xbeef)))
Expect(sf.Other).To(HaveKeyWithValue(uint64(13), uint64(37)))
Expect(sf.Other).To(HaveKeyWithValue(uint64(0xdead), uint64(0xbeef)))
})
It("rejects duplicate settings", func() {
@@ -102,7 +102,7 @@ var _ = Describe("Frames", func() {
})
It("writes", func() {
sf := &settingsFrame{other: map[uint64]uint64{
sf := &settingsFrame{Other: map[uint64]uint64{
1: 2,
99: 999,
13: 37,
@@ -115,7 +115,7 @@ var _ = Describe("Frames", func() {
})
It("errors on EOF", func() {
sf := &settingsFrame{other: map[uint64]uint64{
sf := &settingsFrame{Other: map[uint64]uint64{
13: 37,
0xdeadbeef: 0xdecafbad,
}}