2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Wait until message arrives(again)
	* test/LpdMessageReceiverTest.cc
This commit is contained in:
Tatsuhiro Tsujikawa 2010-03-08 11:59:12 +00:00
parent b6778acd5e
commit 6921e3c543
2 changed files with 6 additions and 0 deletions

View file

@ -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"),