From 858ffd3bf1a4ced2897ccc639a30839808b7261b Mon Sep 17 00:00:00 2001 From: Michael Khlopin Date: Thu, 18 Jul 2019 21:53:38 +0300 Subject: [PATCH] Fixing of connections_and_errors::cancel_with_error test which sometimes fires false positive error "There are no pending calls to next_request." --- Release/tests/functional/http/client/connections_and_errors.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(); }