diff options
author | Ed Tanous <ed@tanous.net> | 2024-01-31 02:56:37 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-03-18 20:02:13 +0300 |
commit | 8f79c5b6a2d53d7b2ea44a2a540369cb191a3b14 (patch) | |
tree | dd5f88f75e2145fb725cacf87939f818c1bf5b5d /include | |
parent | c3805d43db7b5f4e11af39582a48aa8255383716 (diff) | |
download | bmcweb-8f79c5b6a2d53d7b2ea44a2a540369cb191a3b14.tar.xz |
Add unit test for SSE
Writing this test exposed some bugs in SSE that got merged.
sendSSEHeader was never called, leading to a connection that starts
and immediately closes with no error code.
This issue has been corrected in code, such that the sockets start.
To allow for unit tests, the io_service needs to be passed into the
class, previously, the SSE connection was pulling the io_context from
the DBus connection, which is odd, given that the SSE connection has
no other dependencies on DBus.
Unit tests should help keep it working.
Tested: Unit tests pass.
Change-Id: I48080d2a94b6349989f556cd1c7b103bad498526
Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions