This is an automated email from the ASF dual-hosted git repository.
bbender pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git
The following commit(s) were added to refs/heads/develop by this push:
new be5013e GEODE-7019: Fix Windows build - Replace sleep() with
std::this_thread::sleep_for() - NOTE: Units change from seconds to ms(!)
be5013e is described below
commit be5013eee46360fa8a962fe4f7da91de22bd83cf
Author: Blake Bender <[email protected]>
AuthorDate: Tue Aug 13 08:42:41 2019 -0700
GEODE-7019: Fix Windows build
- Replace sleep() with std::this_thread::sleep_for()
- NOTE: Units change from seconds to ms(!)
Co-authored-by: Steve Sienkowski <[email protected]>
---
cppcache/integration/test/CleanIdleConnections.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cppcache/integration/test/CleanIdleConnections.cpp
b/cppcache/integration/test/CleanIdleConnections.cpp
index de2ecbe..3f2cf51 100644
--- a/cppcache/integration/test/CleanIdleConnections.cpp
+++ b/cppcache/integration/test/CleanIdleConnections.cpp
@@ -99,7 +99,7 @@ TEST(CleanIdleConnectionsTest,
cleanIdleConnectionsAfterOpsPaused) {
int poolSize = getCacheImpl(&cache)->getPoolSize(poolName);
ASSERT_EQ(poolSize, 0);
- sleep(10);
+ std::this_thread::sleep_for(std::chrono::milliseconds(10000));
poolSize = getCacheImpl(&cache)->getPoolSize(poolName);
ASSERT_GE(poolSize, minConns);
@@ -127,7 +127,7 @@ TEST(CleanIdleConnectionsTest,
cleanIdleConnectionsAfterOpsPaused) {
// As the default clientIdleTimeout is 5 secs, after 10 seconds
// all idle connections must have been closed.
- sleep(10);
+ std::this_thread::sleep_for(std::chrono::milliseconds(10000));
poolSize = getCacheImpl(&cache)->getPoolSize(poolName);
ASSERT_EQ(poolSize, minConns);