From 93cf0ac2c7921d3344fa112f667c47a838e3b7d6 Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Thu, 28 Mar 2024 00:35:13 -0700 Subject: Fix SSE sockets Redfish protocol validatator has SSE tests that expose some bad coding practies in SSE handlers, namely, that there are several cases where we don't check for nullptr. Fix them. This appears to have been introduced in: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/41319 Tested: Redfish service validator passes more tests. Change-Id: Id980725f007d044b7d120dbe0f4b625865cab6ba Signed-off-by: Ed Tanous --- test/http/server_sent_event_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/http/server_sent_event_test.cpp b/test/http/server_sent_event_test.cpp index 3e740cb525..74007797ef 100644 --- a/test/http/server_sent_event_test.cpp +++ b/test/http/server_sent_event_test.cpp @@ -34,7 +34,7 @@ TEST(ServerSentEvent, SseWorks) std::shared_ptr> conn = std::make_shared>( - io, std::move(stream), openHandler, closeHandler); + std::move(stream), openHandler, closeHandler); conn->start(); // Connect { -- cgit v1.2.3