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

Ashod Nakashian ashod.nakashian at collabora.co.uk
Mon Sep 19 12:03:55 UTC 2016


 loolwsd/test/httpwstest.cpp |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

New commits:
commit d1d5bf28e780a9da286ea4d50517527a43a2f832
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Sat Sep 17 21:48:35 2016 -0400

    loolwsd: log sender/receiver in inactiveClient unittest
    
    Change-Id: I138eb19d5252472edad5272b2764a7c263a224e4
    Reviewed-on: https://gerrit.libreoffice.org/29008
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loolwsd/test/httpwstest.cpp b/loolwsd/test/httpwstest.cpp
index fe348ad..ab1b528 100644
--- a/loolwsd/test/httpwstest.cpp
+++ b/loolwsd/test/httpwstest.cpp
@@ -997,21 +997,20 @@ void HTTPWSTest::testInactiveClient()
     {
         std::string documentPath, documentURL;
         getDocumentPathAndURL("hello.odt", documentPath, documentURL);
-        Poco::Net::HTTPRequest request(Poco::Net::HTTPRequest::HTTP_GET, documentURL);
 
         auto socket1 = loadDocAndGetSocket(_uri, documentURL, "inactiveClient-1 ");
 
         // Connect another and go inactive.
         std::cerr << "Connecting second client." << std::endl;
         auto socket2 = loadDocAndGetSocket(_uri, documentURL, "inactiveClient-2 ", true);
-        sendTextFrame(socket2, "userinactive");
+        sendTextFrame(socket2, "userinactive", "inactiveClient-2 ");
 
         // While second is inactive, make some changes.
-        sendTextFrame(socket1, "uno .uno:SelectAll");
-        sendTextFrame(socket1, "uno .uno:Delete");
+        sendTextFrame(socket1, "uno .uno:SelectAll", "inactiveClient-1 ");
+        sendTextFrame(socket1, "uno .uno:Delete", "inactiveClient-1 ");
 
         // Activate second.
-        sendTextFrame(socket2, "useractive");
+        sendTextFrame(socket2, "useractive", "inactiveClient-2 ");
         SocketProcessor("Second ", socket2, [&](const std::string& msg)
                 {
                     const auto token = LOOLProtocol::getFirstToken(msg);


More information about the Libreoffice-commits mailing list