This commit is contained in:
andrew committed 2025-09-15 10:28:17 -04:00
1 parent ec2ad27e33
commit 1b220d0d1c
8 files changed
+479 -193

No files matched your search

+5 -2
View File
@@ -35,8 +35,11 @@ TEST_CASE("Echo test") {
handler.done.wait();
if (auto conn = handler.wconn.lock()) {
conn->append_message(std::exchange(handler.reply, {}),
std::move(handler.arena));
// Cast to Connection* to access append_bytes (not available on
// MessageSender)
auto *conn_ptr = static_cast<Connection *>(conn.get());
conn_ptr->append_bytes(std::exchange(handler.reply, {}),
std::move(handler.arena), false);
} else {
REQUIRE(false);
}