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;
 }
 
