Merge pull request #3112 from lucas-clemente/fix-timeout-error-logging

fix duplicate logging of errors when the first error was a timeout error
This commit is contained in:
Marten Seemann
2021-04-02 17:24:45 +07:00
committed by GitHub
3 changed files with 25 additions and 24 deletions

View File

@@ -31,7 +31,7 @@ var _ = Describe("QUIC Transport Errors", func() {
})
It("has a string representation for timeout errors", func() {
err := NewTimeoutError("foobar")
err := newTimeoutError("foobar")
Expect(err.Timeout()).To(BeTrue())
Expect(err.Error()).To(Equal("Timeout: foobar"))
})