make it possible to log DATAGRAM frames

This commit is contained in:
Marten Seemann
2020-12-09 15:30:38 +07:00
parent eefd2b73f7
commit 0582228e00
5 changed files with 33 additions and 0 deletions

View File

@@ -364,4 +364,14 @@ var _ = Describe("Frames", func() {
},
)
})
It("marshals DATAGRAM frames", func() {
check(
&logging.DatagramFrame{Length: 1337},
map[string]interface{}{
"frame_type": "datagram",
"length": 1337,
},
)
})
})