1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: Sleep for 3 seconds before running http client tests, giving the flask server some time to come up.
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Forwarded: https://gitlab.com/ubports/core/lib-cpp/net-cpp/-/merge_requests/6
--- a/tests/http_client_test.cpp
+++ b/tests/http_client_test.cpp
@@ -52,6 +52,8 @@
bool init()
{
static httpbin::Instance instance;
+ // wait for flask to come up. On slow architectures, this can take a while...
+ std::this_thread::sleep_for(std::chrono::milliseconds(3000));
return true;
}
--- a/tests/http_streaming_client_test.cpp
+++ b/tests/http_streaming_client_test.cpp
@@ -109,6 +109,8 @@
bool init()
{
static httpbin::Instance instance;
+ // wait for flask to come up. On slow architectures, this can take a while...
+ std::this_thread::sleep_for(std::chrono::milliseconds(3000));
return true;
}
|