[Libreoffice-commits] online.git: loolwsd/test
Henry Castro
hcastro at collabora.com
Wed May 11 05:06:28 UTC 2016
loolwsd/test/httpwstest.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit b3f5873d58e5c2fd25bbad47aea63e920ed97db1
Author: Henry Castro <hcastro at collabora.com>
Date: Wed May 11 01:07:14 2016 -0400
loolwsd: test: update loadDoc
loadDoc now test the first incoming status message
diff --git a/loolwsd/test/httpwstest.cpp b/loolwsd/test/httpwstest.cpp
index 8e74c05..c325140 100644
--- a/loolwsd/test/httpwstest.cpp
+++ b/loolwsd/test/httpwstest.cpp
@@ -298,7 +298,9 @@ void HTTPWSTest::loadDoc(const std::string& documentURL)
try
{
// Load a document and get its status.
- auto socket = loadDocAndGetSocket(_uri, documentURL);
+ Poco::Net::HTTPRequest request(Poco::Net::HTTPRequest::HTTP_GET, documentURL);
+ auto socket = connectLOKit(_uri, request, _response);
+ sendTextFrame(*socket, "load url=" + documentURL);
SocketProcessor("", socket, [&](const std::string& msg)
{
More information about the Libreoffice-commits
mailing list