summaryrefslogtreecommitdiff
path: root/test/UnitClose.cpp
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-02-11 09:20:13 +0100
committerMiklos Vajna <vmiklos@collabora.com>2020-02-11 10:02:17 +0100
commit8b82efd2858dd49de05921d5fe3b7cf3125819b1 (patch)
tree90d3a16c5df577683a7b5bc1ef768ffd6063d41e /test/UnitClose.cpp
parent002691d56c215f1df535f0fe342145f1f9964494 (diff)
test: increase timeout of UnitClose
This now failed under sanitizers due to a timeout. Make the new limit 2 minutes, sanitizers require 51 seconds for me (so we did not fit into the 30 seconds default). Change-Id: Ib8edb002b50e55b605152be5d50574c396964c25 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88424 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'test/UnitClose.cpp')
-rw-r--r--test/UnitClose.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/UnitClose.cpp b/test/UnitClose.cpp
index 864ac9490..fb1718ccc 100644
--- a/test/UnitClose.cpp
+++ b/test/UnitClose.cpp
@@ -49,6 +49,7 @@ class UnitClose : public UnitWSD
TestResult testAlertAllUsers();
public:
+ UnitClose();
void invokeTest() override;
};
@@ -209,6 +210,12 @@ UnitBase::TestResult UnitClose::testAlertAllUsers()
return TestResult::Ok;
}
+UnitClose::UnitClose()
+{
+ int timeout_minutes = 2;
+ setTimeout(timeout_minutes * 60 * 1000);
+}
+
void UnitClose::invokeTest()
{
UnitBase::TestResult result = testCloseAfterClose();