fix: ignore `broken pipe` errors coming out of the tls layer when closing a wss connection
@@ -571,6 +571,12 @@ var _ = Describe("Apps API Application Endpoints", func() {
}, 30*time.Second, 1*time.Second).Should(BeTrue())
err := wsConn.Close()
+ // With regular `ws` we could expect to not see any errors. With `wss`
+ // however, with a tls layer in the mix, we can expect to see a `broken
+ // pipe` issued. That is not a thing to act on, and is ignored.
+ if strings.Contains(err.Error(), "broken pipe") {
+ return logs
+ }
Expect(err).ToNot(HaveOccurred())
return logs
