mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 13:37:40 +03:00
2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Wait until data arrives. * test/LpdMessageReceiverTest.cc
This commit is contained in:
parent
3bb7855a56
commit
c929e95ff0
2 changed files with 7 additions and 0 deletions
|
@ -60,6 +60,7 @@ void LpdMessageReceiverTest::testReceiveMessage()
|
|||
sendsock->writeData(request.c_str(), request.size(),
|
||||
LPD_MULTICAST_ADDR, LPD_MULTICAST_PORT);
|
||||
|
||||
rcv.getSocket()->isReadable(5);
|
||||
msg = rcv.receiveMessage();
|
||||
CPPUNIT_ASSERT(!msg.isNull());
|
||||
CPPUNIT_ASSERT(msg->getPeer().isNull());
|
||||
|
@ -73,6 +74,7 @@ void LpdMessageReceiverTest::testReceiveMessage()
|
|||
sendsock->writeData(request.c_str(), request.size(),
|
||||
LPD_MULTICAST_ADDR, LPD_MULTICAST_PORT);
|
||||
|
||||
rcv.getSocket()->isReadable(5);
|
||||
msg = rcv.receiveMessage();
|
||||
CPPUNIT_ASSERT(!msg.isNull());
|
||||
CPPUNIT_ASSERT(msg->getPeer().isNull());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue