mirror of
https://github.com/aria2/aria2.git
synced 2025-04-06 14:07:37 +03:00
2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Wait until message arrives(again) * test/LpdMessageReceiverTest.cc
This commit is contained in:
parent
b6778acd5e
commit
6921e3c543
2 changed files with 6 additions and 0 deletions
|
@ -45,6 +45,7 @@ void LpdMessageReceiverTest::testReceiveMessage()
|
|||
sendsock->writeData(request.c_str(), request.size(),
|
||||
LPD_MULTICAST_ADDR, LPD_MULTICAST_PORT);
|
||||
|
||||
rcv.getSocket()->isReadable(5);
|
||||
SharedHandle<LpdMessage> msg = rcv.receiveMessage();
|
||||
CPPUNIT_ASSERT(!msg.isNull());
|
||||
CPPUNIT_ASSERT_EQUAL(std::string("cd41c7fdddfd034a15a04d7ff881216e01c4ceaf"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue