fix(eventsub): close connection after timeout (#6059)

This commit is contained in:
nerix
2025-03-09 22:44:02 +01:00
committed by GitHub
parent 9124c68278
commit 108a437841
5 changed files with 9 additions and 7 deletions
+2 -2
View File
@@ -157,8 +157,8 @@ TEST_P(TestHandleMessageP, Run)
boost::asio::io_context ioc;
boost::asio::ssl::context ssl(
boost::asio::ssl::context::method::tls_client);
Session sess(ioc, ssl, std::move(listener));
auto ec = sess.handleMessage(buf);
auto sess = std::make_shared<Session>(ioc, ssl, std::move(listener));
auto ec = sess->handleMessage(buf);
ASSERT_FALSE(ec.failed())
<< ec.what() << ec.message() << ec.location().to_string();
}