MCPcopy Create free account
hub / github.com/apache/thrift / checkNoEvents

Function checkNoEvents

lib/cpp/test/processor/ProcessorTest.cpp:288–295  ·  view source on GitHub ↗

* Check that there are no more events in the log */

Source from the content-addressed store, hash-verified

286 * Check that there are no more events in the log
287 */
288void checkNoEvents(const std::shared_ptr<EventLog>& log) {
289 // Wait for an event with a very short timeout period. We don't expect
290 // anything to be present, so we will normally wait for the full timeout.
291 // On the other hand, a non-zero timeout is nice since it does give a short
292 // window for events to arrive in case there is a problem.
293 Event event = log->waitForEvent(10);
294 BOOST_CHECK_EQUAL(EventLog::ET_LOG_END, event.type);
295}
296
297/**
298 * Check for the events that should be logged when a new connection is created.

Callers 5

checkCloseEventsFunction · 0.85
testEventSequencingFunction · 0.85
testOnewayCallFunction · 0.85
testExpectedErrorFunction · 0.85
testUnexpectedErrorFunction · 0.85

Calls 1

waitForEventMethod · 0.45

Tested by

no test coverage detected