1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
Description: Sleep 5 seconds instead of 1 second before running unit tests against the flask server, it needs some time to come up (esp. on slow hardware).
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Forwarded: https://gitlab.com/ubports/development/core/lib-cpp/net-cpp/-/merge_requests/6
--- a/tests/httpbin.h.in
+++ b/tests/httpbin.h.in
@@ -45,7 +45,7 @@
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()
|