Skip to content

Commit 023475a

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

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/***
22
* ==++==
33
*
4-
* Copyright (c) Microsoft Corporation. All rights reserved.
4+
* Copyright (c) Microsoft Corporation. All rights reserved.
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
77
* You may obtain a copy of the License at
@@ -27,7 +27,7 @@
2727
using namespace Windows::Storage;
2828
#endif
2929

30-
using namespace web;
30+
using namespace web;
3131
using namespace utility;
3232
using namespace concurrency;
3333
using namespace web::http;
@@ -333,6 +333,11 @@ TEST_FIXTURE(uri_address, set_body_stream_exception)
333333
buf.close(std::ios::in, std::make_exception_ptr(test_exception())).wait();
334334

335335
VERIFY_THROWS(client.request(msg).get(), test_exception);
336+
337+
// Codeplex 328.
338+
#if !defined(_WIN32)
339+
tests::common::utilities::os_utilities::sleep(1000);
340+
#endif
336341
}
337342
#endif
338343

0 commit comments

Comments
 (0)