@@ -252,7 +252,7 @@ TEST_FIXTURE(uri_address, cancel_before_request)
252252
253253// This test can't be implemented with our test server so isn't available on WinRT.
254254#ifndef __cplusplus_winrt
255- TEST_FIXTURE (uri_address, cancel_after_headers, " Ignore:Apple " , " 220 " )
255+ TEST_FIXTURE (uri_address, cancel_after_headers)
256256{
257257 web::http::experimental::listener::http_listener listener (m_uri);
258258 listener.open ().wait ();
@@ -280,11 +280,17 @@ TEST_FIXTURE(uri_address, cancel_after_headers, "Ignore:Apple", "220")
280280 ev.set ();
281281
282282 VERIFY_THROWS_HTTP_ERROR_CODE (response.extract_string ().get (), std::errc::operation_canceled);
283+
284+ // Codeplex 328.
285+ #if !defined(_WIN32)
286+ tests::common::utilities::os_utilities::sleep (1000 );
287+ #endif
288+
283289 listener.close ().wait ();
284290}
285291#endif
286292
287- TEST_FIXTURE (uri_address, cancel_after_body, " Ignore:Apple " , " 220 " )
293+ TEST_FIXTURE (uri_address, cancel_after_body)
288294{
289295 test_http_server::scoped_server scoped (m_uri);
290296 test_http_server * p_server = scoped.server ();
@@ -305,7 +311,7 @@ TEST_FIXTURE(uri_address, cancel_after_body, "Ignore:Apple", "220")
305311 response.content_ready ().wait ();
306312}
307313
308- TEST_FIXTURE (uri_address, cancel_with_error, " Ignore:Apple " , " 220 " )
314+ TEST_FIXTURE (uri_address, cancel_with_error)
309315{
310316 test_http_server server (m_uri);
311317 VERIFY_ARE_EQUAL (0 , server.open ());
@@ -320,7 +326,7 @@ TEST_FIXTURE(uri_address, cancel_with_error, "Ignore:Apple", "220")
320326 VERIFY_THROWS_HTTP_ERROR_CODE (responseTask.get (), std::errc::operation_canceled);
321327}
322328
323- TEST_FIXTURE (uri_address, cancel_while_uploading_data, " Ignore:Linux " , " 220 " , " Ignore:Apple " , " 220 " )
329+ TEST_FIXTURE (uri_address, cancel_while_uploading_data)
324330{
325331 test_http_server::scoped_server scoped (m_uri);
326332 http_client c (m_uri);
@@ -337,7 +343,7 @@ TEST_FIXTURE(uri_address, cancel_while_uploading_data, "Ignore:Linux", "220", "I
337343
338344// This test can't be implemented with our test server since it doesn't stream data so isn't avaliable on WinRT.
339345#ifndef __cplusplus_winrt
340- TEST_FIXTURE (uri_address, cancel_while_downloading_data, " Ignore:Apple " , " 220 " )
346+ TEST_FIXTURE (uri_address, cancel_while_downloading_data)
341347{
342348 web::http::experimental::listener::http_listener listener (m_uri);
343349 listener.open ().wait ();
@@ -369,6 +375,11 @@ TEST_FIXTURE(uri_address, cancel_while_downloading_data, "Ignore:Apple", "220")
369375
370376 VERIFY_THROWS_HTTP_ERROR_CODE (response.extract_string ().get (), std::errc::operation_canceled);
371377
378+ // Codeplex 328.
379+ #if !defined(_WIN32)
380+ tests::common::utilities::os_utilities::sleep (1000 );
381+ #endif
382+
372383 listener.close ().wait ();
373384}
374385#endif
0 commit comments