diff options
author | Pranam Lashkari <lpranam@collabora.com> | 2019-11-19 14:00:30 +0530 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2020-04-29 10:28:53 +0200 |
commit | b67b335b50e980f73f379b1537e32b563d453c64 (patch) | |
tree | d4baebbec4137f32c6070327e465cdf72e8edd31 /test | |
parent | notebookbar: Create toolbars depending on settings (diff) | |
download | online-b67b335b50e980f73f379b1537e32b563d453c64.tar.gz online-b67b335b50e980f73f379b1537e32b563d453c64.zip |
killpoco: Removed Poco::Thread::sleep
Replaced method with std::this_thread::sleep_for
Change-Id: I26e37475d67816e4f1d68d222b1c067107c27b05
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/83200
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/UnitAdmin.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/UnitAdmin.cpp b/test/UnitAdmin.cpp index 65a4fccd0a..4cb030047e 100644 --- a/test/UnitAdmin.cpp +++ b/test/UnitAdmin.cpp @@ -11,6 +11,8 @@ #include <condition_variable> #include <mutex> +#include <thread> +#include <chrono> #include <Poco/Net/HTTPBasicCredentials.h> #include <Poco/Net/HTTPCookie.h> @@ -200,7 +202,7 @@ private: // FIXME: we really should wait for the subscription to be // registered and have a reply to avoid a race here. - Poco::Thread::sleep(250); + std::this_thread::sleep_for(std::chrono::milliseconds(250)); std::string documentPath1, documentURL1; helpers::getDocumentPathAndURL("hello.odt", documentPath1, documentURL1, "unitAdmin-hello.odt "); |