X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FSocketSource.test.cc;h=a1f37118fe6e94e06a268b570f82344100029dd7;hb=23ef68f7c443f0993b2b46cd912666c040fdccba;hp=d1f6263212d5d8827cc4c6f5684604d1a7ea2bf4;hpb=a1a6c76a214ad1935032826713cabaf9ac57bf07;p=senf.git diff --git a/PPI/SocketSource.test.cc b/PPI/SocketSource.test.cc index d1f6263..a1f3711 100644 --- a/PPI/SocketSource.test.cc +++ b/PPI/SocketSource.test.cc @@ -47,7 +47,7 @@ namespace debug = module::debug; namespace { void timeout() { - senf::Scheduler::instance().terminate(); + senf::scheduler::terminate(); } } @@ -64,8 +64,9 @@ BOOST_AUTO_UNIT_TEST(socketSource) senf::UDPv4ClientSocketHandle outputSocket; outputSocket.writeto(senf::INet4SocketAddress("localhost:44344"),data); - senf::Scheduler::instance().timeout( - senf::ClockService::now() + senf::ClockService::milliseconds(100), &timeout); + senf::scheduler::TimerEvent timer ( + "socketSource test timer", &timeout, + senf::ClockService::now() + senf::ClockService::milliseconds(100)); senf::ppi::run(); BOOST_REQUIRE( ! sink.empty() );