stop using net.Error.Temporary in tests

This commit is contained in:
Marten Seemann 2022-04-02 20:23:00 +01:00
parent 0c6b3dfa93
commit 4f85f45f0a
5 changed files with 0 additions and 7 deletions

View file

@ -73,7 +73,6 @@ var _ = Describe("QUIC Errors", func() {
nerr, ok := err.(net.Error)
Expect(ok).To(BeTrue())
Expect(nerr.Timeout()).To(BeTrue())
Expect(nerr.Temporary()).To(BeFalse())
Expect(err.Error()).To(Equal("timeout: handshake did not complete in time"))
})
@ -84,7 +83,6 @@ var _ = Describe("QUIC Errors", func() {
nerr, ok := err.(net.Error)
Expect(ok).To(BeTrue())
Expect(nerr.Timeout()).To(BeTrue())
Expect(nerr.Temporary()).To(BeFalse())
Expect(err.Error()).To(Equal("timeout: no recent network activity"))
})
})
@ -112,7 +110,6 @@ var _ = Describe("QUIC Errors", func() {
nerr, ok := err.(net.Error)
Expect(ok).To(BeTrue())
Expect(nerr.Timeout()).To(BeFalse())
Expect(nerr.Temporary()).To(BeTrue())
})
})