add timeout to testMulticast

This commit is contained in:
Günter Obiltschnig 2020-02-08 20:25:25 +01:00
parent 4092984256
commit c890576b9a

View File

@ -51,6 +51,7 @@ void MulticastSocketTest::testMulticast()
{
MulticastEchoServer echoServer;
MulticastSocket ms(SocketAddress::IPv4);
ms.setReceiveTimeout(Poco::Timespan(5, 0));
int n = ms.sendTo("hello", 5, echoServer.group());
assertTrue (n == 5);
char buffer[256];