diff --git a/Release/tests/functional/http/client/connections_and_errors.cpp b/Release/tests/functional/http/client/connections_and_errors.cpp index aea69b8c08..847755d80a 100644 --- a/Release/tests/functional/http/client/connections_and_errors.cpp +++ b/Release/tests/functional/http/client/connections_and_errors.cpp @@ -341,7 +341,9 @@ SUITE(connections_and_errors) test_http_server::scoped_server server(m_uri); pplx::cancellation_token_source source; + const auto r = server.server()->next_request(); responseTask = c.request(methods::GET, U("/"), source.get_token()); + r.wait(); source.cancel(); }