rename the logging.CloseReason to TimeoutReason

This commit is contained in:
Marten Seemann
2020-07-10 12:37:36 +07:00
parent 53856bda60
commit 7d6ce4ea45
10 changed files with 31 additions and 24 deletions

View File

@@ -59,8 +59,8 @@ var _ = Describe("Types", func() {
})
It("has a string representation for the close reason", func() {
Expect(closeReason(logging.CloseReasonHandshakeTimeout).String()).To(Equal("handshake_timeout"))
Expect(closeReason(logging.CloseReasonIdleTimeout).String()).To(Equal("idle_timeout"))
Expect(timeoutReason(logging.TimeoutReasonHandshake).String()).To(Equal("handshake_timeout"))
Expect(timeoutReason(logging.TimeoutReasonIdle).String()).To(Equal("idle_timeout"))
})
It("has a string representation for the key type", func() {