[Libreoffice-commits] online.git: loolwsd/test
Henry Castro
hcastro at collabora.com
Thu Apr 14 16:00:27 UTC 2016
loolwsd/test/httpwstest.cpp | 1 +
1 file changed, 1 insertion(+)
New commits:
commit bea5963aa78105ea9b1902bcffe31538c7404b23
Author: Henry Castro <hcastro at collabora.com>
Date: Thu Apr 14 12:00:32 2016 -0400
loolwsd: avoid time out exception
diff --git a/loolwsd/test/httpwstest.cpp b/loolwsd/test/httpwstest.cpp
index 950c98f..046230e 100644
--- a/loolwsd/test/httpwstest.cpp
+++ b/loolwsd/test/httpwstest.cpp
@@ -199,6 +199,7 @@ void HTTPWSTest::testHandShake()
std::string payload("statusindicator: find");
std::string receive;
+ socket.setReceiveTimeout(0);
bytes = socket.receiveFrame(buffer, sizeof(buffer), flags);
CPPUNIT_ASSERT_EQUAL((int) payload.size(), bytes);
CPPUNIT_ASSERT(payload.compare(0, payload.size(), buffer, 0, bytes) == 0);
More information about the Libreoffice-commits
mailing list