forked from quic-go/quic-go
logging: add a Close function to the Tracer (#4298)
* logging: add a Close function to the Tracer * close the Tracer when the Transport is closed
This commit is contained in:
@@ -70,6 +70,12 @@ var _ = Describe("Tracing", func() {
|
||||
tr2.EXPECT().Debug("foo", "bar")
|
||||
tracer.Debug("foo", "bar")
|
||||
})
|
||||
|
||||
It("traces the Close event", func() {
|
||||
tr1.EXPECT().Close()
|
||||
tr2.EXPECT().Close()
|
||||
tracer.Close()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user