github.com/tumi8/quic-go@v0.37.4-tum/noninternal/wire/handshake_done_frame_test.go (about) 1 package wire 2 3 import ( 4 "github.com/tumi8/quic-go/noninternal/protocol" 5 6 . "github.com/onsi/ginkgo/v2" 7 . "github.com/onsi/gomega" 8 ) 9 10 var _ = Describe("HANDSHAKE_DONE frame", func() { 11 Context("when writing", func() { 12 It("writes a sample frame", func() { 13 frame := HandshakeDoneFrame{} 14 b, err := frame.Append(nil, protocol.Version1) 15 Expect(err).ToNot(HaveOccurred()) 16 Expect(b).To(Equal([]byte{handshakeDoneFrameType})) 17 }) 18 19 It("has the correct min length", func() { 20 frame := HandshakeDoneFrame{} 21 Expect(frame.Length(protocol.Version1)).To(Equal(protocol.ByteCount(1))) 22 }) 23 }) 24 })