aports/community/net-cpp/python-init.patch
Luca Weiss 22422302aa community/net-cpp: increase sleep after python init
On some builders the init seems to take longer than 1s, so increase to
5s and hope this is enough for python+httpbin to be initialized.
2021-04-20 01:15:57 +00:00

14 lines
537 B
Diff

diff --git a/tests/httpbin.h.in b/tests/httpbin.h.in
index 0010068..6a96e66 100644
--- a/tests/httpbin.h.in
+++ b/tests/httpbin.h.in
@@ -45,7 +45,7 @@ struct Instance
core::posix::exec("/usr/bin/python3", {"-c", "from httpbin import app; app.run()"}, {}, core::posix::StandardStream::stdout /*| core::posix::StandardStream::stderr*/)
}
{
- std::this_thread::sleep_for(std::chrono::milliseconds{1000});
+ std::this_thread::sleep_for(std::chrono::milliseconds{5000});
}
~Instance()