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

Ashod Nakashian ashod.nakashian at collabora.co.uk
Sun May 15 14:35:06 UTC 2016


 loolwsd/test/countloolkits.hpp |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit a0f16e6eef1c7fec57fb739739b45f6fb9bc41fc
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Sun May 15 10:27:16 2016 -0400

    loolwsd: shorter lokit process counting interval and log count
    
    Change-Id: I88d2dfd04f879d25d9e70d60f362ca47b39e8af9
    Reviewed-on: https://gerrit.libreoffice.org/25009
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loolwsd/test/countloolkits.hpp b/loolwsd/test/countloolkits.hpp
index c9ca40f..e5e4632 100644
--- a/loolwsd/test/countloolkits.hpp
+++ b/loolwsd/test/countloolkits.hpp
@@ -61,14 +61,14 @@ int getLoolKitProcessCount()
         }
     }
 
-    // std::cout << "Number of loolkit processes: " << result << std::endl;
+    std::cerr << "Number of loolkit processes: " << result << std::endl;
     return result;
 }
 
 static
 int countLoolKitProcesses(const int expected, const int timeoutMs = POLL_TIMEOUT_MS * 10)
 {
-    const size_t repeat = 1 + (timeoutMs / POLL_TIMEOUT_MS);
+    const size_t repeat = 1 + (2 * timeoutMs / POLL_TIMEOUT_MS);
     auto count = getLoolKitProcessCount();
     for (size_t i = 0; i < repeat; ++i)
     {
@@ -78,7 +78,7 @@ int countLoolKitProcesses(const int expected, const int timeoutMs = POLL_TIMEOUT
         }
 
         // Give polls in the lool processes time to time out etc
-        Poco::Thread::sleep(POLL_TIMEOUT_MS);
+        Poco::Thread::sleep(POLL_TIMEOUT_MS / 2);
 
         count = getLoolKitProcessCount();
     }


More information about the Libreoffice-commits mailing list