Socket/Protocols/Inet: Fix off-by-one error in INet6Address
[senf.git] / PPI / IntervalTimer.test.cc
index b3984e1..9aca3db 100644 (file)
@@ -31,7 +31,7 @@
 #include "Module.hh"
 #include "Setup.hh"
 
-#include <boost/test/auto_unit_test.hpp>
+#include "../Utils/auto_unit_test.hh"
 #include <boost/test/test_tools.hpp>
 
 #define prefix_
@@ -60,12 +60,12 @@ namespace {
         :   timer ( senf::ClockService::milliseconds(d_) ), 
             n     ( n_ ) 
         {
-            registerEvent( &TimerTest::tick, timer );
+            registerEvent( timer, &TimerTest::tick );
         }
     };
 
     bool is_close_clock(senf::ClockService::clock_type a, senf::ClockService::clock_type b, 
-                        unsigned long delta = 50000000ul)
+                        unsigned long delta = senf::ClockService::milliseconds(100))
     {
         return (a<b ? b-a : a-b ) < delta;
     }