[Libreoffice-commits] online.git: test/UnitEachView.cpp
Miklos Vajna (via logerrit)
logerrit at kemper.freedesktop.org
Thu Feb 13 10:13:50 UTC 2020
test/UnitEachView.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 955f6622941eeff02429547b197aebb3bed27394
Author: Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Thu Feb 13 09:02:51 2020 +0100
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Thu Feb 13 11:13:32 2020 +0100
test, unit-each-view: increase timeout
With this, the test passes under sanitizers as well.
Change-Id: I777e177d4f171328744cf83386276752d51700cc
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88584
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
diff --git a/test/UnitEachView.cpp b/test/UnitEachView.cpp
index 230324592..19424e710 100644
--- a/test/UnitEachView.cpp
+++ b/test/UnitEachView.cpp
@@ -62,7 +62,9 @@ void testEachView(const std::string& doc, const std::string& type, const std::st
Poco::format(text, "mouse type=%s x=%d y=%d count=1 buttons=1 modifier=0",
std::string("buttonup"), docWidth / 2, docHeight / 6);
helpers::sendTextFrame(socket, text, Poco::format(view, itView));
- response = helpers::getResponseString(socket, protocol, Poco::format(view, itView));
+ // Double of the default.
+ size_t timeoutMs = 20000;
+ response = helpers::getResponseString(socket, protocol, Poco::format(view, itView), timeoutMs);
CPPUNIT_ASSERT_MESSAGE(Poco::format(error, itView, protocol), !response.empty());
// Connect and load 0..N Views, where N<=limit
@@ -79,7 +81,7 @@ void testEachView(const std::string& doc, const std::string& type, const std::st
itView = 0;
for (const auto& socketView : views)
{
- helpers::getResponseString(socket, protocolView, Poco::format(view, itView));
+ helpers::getResponseString(socket, protocolView, Poco::format(view, itView), timeoutMs);
CPPUNIT_ASSERT_MESSAGE(Poco::format(error, itView, protocolView), !response.empty());
++itView;
(void)socketView;
More information about the Libreoffice-commits
mailing list