Skip to content

Commit 2a8c17e

Browse files
miheriusBillyONeal
authored andcommitted
Fixing of connections_and_errors::cancel_with_error test which sometimes fires false positive error "There are no pending calls to next_request." (#1196)
1 parent f7065f4 commit 2a8c17e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Release/tests/functional/http/client/connections_and_errors.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,9 @@ SUITE(connections_and_errors)
341341
test_http_server::scoped_server server(m_uri);
342342
pplx::cancellation_token_source source;
343343

344+
const auto r = server.server()->next_request();
344345
responseTask = c.request(methods::GET, U("/"), source.get_token());
346+
r.wait();
345347
source.cancel();
346348
}
347349

0 commit comments

Comments
 (0)