Skip to content

Commit

Permalink
cancel test allows reset connection in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
klemens-morgenstern committed Jun 20, 2023
1 parent 5f460cc commit 1b7a59f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/beast/websocket/cancel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ class cancel_test : public websocket_test_suite
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())
Expand Down

0 comments on commit 1b7a59f

Please sign in to comment.