[Libreoffice-commits] online.git: loolwsd/test

Henry Castro hcastro at collabora.com
Wed Apr 27 18:29:23 UTC 2016


 loolwsd/test/httpwstest.cpp |    7 -------
 1 file changed, 7 deletions(-)

New commits:
commit daa3d69f9e2d89821e3141ab3cca3077624d483a
Author: Henry Castro <hcastro at collabora.com>
Date:   Wed Apr 27 14:30:19 2016 -0400

    loolwsd: test: update

diff --git a/loolwsd/test/httpwstest.cpp b/loolwsd/test/httpwstest.cpp
index ce8c9b6..a22a052 100644
--- a/loolwsd/test/httpwstest.cpp
+++ b/loolwsd/test/httpwstest.cpp
@@ -228,7 +228,6 @@ void HTTPWSTest::testHandShake()
 #endif
         Poco::Net::WebSocket socket(session, request, response);
 
-        const std::string prefixEdit = "editlock:";
         const char* fail = "error:";
         std::string payload("statusindicator: find");
 
@@ -241,13 +240,7 @@ void HTTPWSTest::testHandShake()
         bytes = socket.receiveFrame(buffer, sizeof(buffer), flags);
         if (!std::strstr(buffer, fail))
         {
-            // After document broker finish searching it sends editlok
-            // it should be at end on handshake
-            CPPUNIT_ASSERT_EQUAL(prefixEdit, std::string(buffer, std::min((std::string::size_type)bytes, prefixEdit.size())));
-            CPPUNIT_ASSERT(flags == Poco::Net::WebSocket::FRAME_TEXT);
-
             payload = "statusindicator: connect";
-            bytes = socket.receiveFrame(buffer, sizeof(buffer), flags);
             CPPUNIT_ASSERT_EQUAL(payload, std::string(buffer, bytes));
             CPPUNIT_ASSERT(flags == Poco::Net::WebSocket::FRAME_TEXT);
 


More information about the Libreoffice-commits mailing list