Skip to content

Commit c21dbaa

Browse files
committed
Adding sleep to workaround test http server shutdown close issue.
1 parent 023475a commit c21dbaa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,11 @@ TEST_FIXTURE(uri_address, stream_close_early_with_exception_and_contentlength)
411411

412412
// Verify that the responseTask throws the exception set when closing the stream
413413
VERIFY_THROWS(responseTask.get(), test_exception);
414+
415+
// Codeplex 328.
416+
#if !defined(_WIN32)
417+
tests::common::utilities::os_utilities::sleep(1000);
418+
#endif
414419
}
415420
#endif
416421

@@ -433,6 +438,11 @@ TEST_FIXTURE(uri_address, stream_close_early_with_contentlength)
433438

434439
// Verify that the responseTask throws the exception set when closing the stream
435440
VERIFY_THROWS(responseTask.get(), http_exception);
441+
442+
// Codeplex 328.
443+
#if !defined(_WIN32)
444+
tests::common::utilities::os_utilities::sleep(1000);
445+
#endif
436446
}
437447
#endif
438448

0 commit comments

Comments
 (0)