@@ -252,7 +252,7 @@ TEST_FIXTURE(uri_address, cancel_before_request)
252
252
253
253
// This test can't be implemented with our test server so isn't available on WinRT.
254
254
#ifndef __cplusplus_winrt
255
- TEST_FIXTURE (uri_address, cancel_after_headers, " Ignore:Apple " , " 220 " )
255
+ TEST_FIXTURE (uri_address, cancel_after_headers)
256
256
{
257
257
web::http::experimental::listener::http_listener listener (m_uri);
258
258
listener.open ().wait ();
@@ -280,11 +280,17 @@ TEST_FIXTURE(uri_address, cancel_after_headers, "Ignore:Apple", "220")
280
280
ev.set ();
281
281
282
282
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
+
283
289
listener.close ().wait ();
284
290
}
285
291
#endif
286
292
287
- TEST_FIXTURE (uri_address, cancel_after_body, " Ignore:Apple " , " 220 " )
293
+ TEST_FIXTURE (uri_address, cancel_after_body)
288
294
{
289
295
test_http_server::scoped_server scoped (m_uri);
290
296
test_http_server * p_server = scoped.server ();
@@ -305,7 +311,7 @@ TEST_FIXTURE(uri_address, cancel_after_body, "Ignore:Apple", "220")
305
311
response.content_ready ().wait ();
306
312
}
307
313
308
- TEST_FIXTURE (uri_address, cancel_with_error, " Ignore:Apple " , " 220 " )
314
+ TEST_FIXTURE (uri_address, cancel_with_error)
309
315
{
310
316
test_http_server server (m_uri);
311
317
VERIFY_ARE_EQUAL (0 , server.open ());
@@ -320,7 +326,7 @@ TEST_FIXTURE(uri_address, cancel_with_error, "Ignore:Apple", "220")
320
326
VERIFY_THROWS_HTTP_ERROR_CODE (responseTask.get (), std::errc::operation_canceled);
321
327
}
322
328
323
- TEST_FIXTURE (uri_address, cancel_while_uploading_data, " Ignore:Linux " , " 220 " , " Ignore:Apple " , " 220 " )
329
+ TEST_FIXTURE (uri_address, cancel_while_uploading_data)
324
330
{
325
331
test_http_server::scoped_server scoped (m_uri);
326
332
http_client c (m_uri);
@@ -337,7 +343,7 @@ TEST_FIXTURE(uri_address, cancel_while_uploading_data, "Ignore:Linux", "220", "I
337
343
338
344
// This test can't be implemented with our test server since it doesn't stream data so isn't avaliable on WinRT.
339
345
#ifndef __cplusplus_winrt
340
- TEST_FIXTURE (uri_address, cancel_while_downloading_data, " Ignore:Apple " , " 220 " )
346
+ TEST_FIXTURE (uri_address, cancel_while_downloading_data)
341
347
{
342
348
web::http::experimental::listener::http_listener listener (m_uri);
343
349
listener.open ().wait ();
@@ -369,6 +375,11 @@ TEST_FIXTURE(uri_address, cancel_while_downloading_data, "Ignore:Apple", "220")
369
375
370
376
VERIFY_THROWS_HTTP_ERROR_CODE (response.extract_string ().get (), std::errc::operation_canceled);
371
377
378
+ // Codeplex 328.
379
+ #if !defined(_WIN32)
380
+ tests::common::utilities::os_utilities::sleep (1000 );
381
+ #endif
382
+
372
383
listener.close ().wait ();
373
384
}
374
385
#endif
0 commit comments