fix(eventsub): check keepalive (#6058)

This commit is contained in:
nerix
2025-03-09 21:32:49 +01:00
committed by GitHub
parent 673ce8eecf
commit 9124c68278
8 changed files with 224 additions and 148 deletions
+5 -1
View File
@@ -154,7 +154,11 @@ TEST_P(TestHandleMessageP, Run)
auto buf = readToFlatBuffer(filePath(GetParam() + ".json"));
std::unique_ptr<Listener> listener = std::make_unique<NoOpListener>();
auto ec = handleMessage(listener, buf);
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);
ASSERT_FALSE(ec.failed())
<< ec.what() << ec.message() << ec.location().to_string();
}