* Check for the events that should be logged when a connection is closed. */
| 315 | * Check for the events that should be logged when a connection is closed. |
| 316 | */ |
| 317 | void checkCloseEvents(const std::shared_ptr<EventLog>& log, uint32_t connId) { |
| 318 | // Check for an ET_CONN_DESTROYED event |
| 319 | Event event = log->waitForEvent(); |
| 320 | BOOST_CHECK_EQUAL(EventLog::ET_CONN_DESTROYED, event.type); |
| 321 | BOOST_CHECK_EQUAL(connId, event.connectionId); |
| 322 | |
| 323 | // Make sure there are no more events |
| 324 | checkNoEvents(log); |
| 325 | } |
| 326 | |
| 327 | /** |
| 328 | * Check for the events that should be logged when a call is received |
no test coverage detected