Packets: extended description of bad_cast exception in Packet.as()
[senf.git] / senf / PPI / QueueingSocketSink.test.cc
index 9d9268f..44a49d0 100644 (file)
@@ -36,7 +36,7 @@
 #include <boost/test/test_tools.hpp>
 
 #define prefix_
-///////////////////////////////cc.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 namespace ppi = senf::ppi;
 namespace module = ppi::module;
 namespace debug = module::debug;
@@ -116,7 +116,7 @@ SENF_AUTO_UNIT_TEST(passiveQueueingSocketSink)
     source.submit(p);
     BOOST_CHECK_EQUAL( udpSink.qAlgorithm().size(), 1);
 
-    for( int n = 0; n < 100; n++) {
+    for (int n = 0; n < 100; n++) {
         source.submit(p);
     }
     // queue default size is 64
@@ -124,7 +124,7 @@ SENF_AUTO_UNIT_TEST(passiveQueueingSocketSink)
 
     udpSink.writer().throttled = false;
 
-    runPPI( senf::ClockService::milliseconds(200));
+    runPPI( senf::ClockService::milliseconds(250));
 
     inputSocket.blocking(false);
     while (true) {
@@ -132,11 +132,13 @@ SENF_AUTO_UNIT_TEST(passiveQueueingSocketSink)
         if (input.empty()) break;
         BOOST_CHECK_EQUAL( data, input );
     }
+
+    runPPI( senf::ClockService::milliseconds(250));
     BOOST_CHECK_EQUAL( udpSink.qAlgorithm().size(), 0);
 }
 
 
-///////////////////////////////cc.e////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 #undef prefix_
 
 \f