From af5240f6f1a15ba328c763f2c505a60a3cbcb555 Mon Sep 17 00:00:00 2001 From: Klemens Morgenstern Date: Tue, 20 Jun 2023 14:20:02 +0800 Subject: [PATCH] cancel test allows reset connection in tests. --- test/beast/websocket/cancel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/beast/websocket/cancel.cpp b/test/beast/websocket/cancel.cpp index 5933620a..fdb438b6 100644 --- a/test/beast/websocket/cancel.cpp +++ b/test/beast/websocket/cancel.cpp @@ -166,6 +166,8 @@ public: cancel_counter++; BEAST_EXPECTS(ec == net::error::operation_aborted + // freebsd does this in tests. + || ec == net::error::connection_reset || ec == net::error::broken_pipe // winapi WSAECONNRESET, as system_category || ec == error_code(10054, boost::system::system_category())