diff options
-rw-r--r-- | cpp/test/Ice/location/AllTests.cpp | 4 | ||||
-rwxr-xr-x | cs/test/Ice/location/AllTests.cs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cpp/test/Ice/location/AllTests.cpp b/cpp/test/Ice/location/AllTests.cpp index 79940109930..65f294f5f44 100644 --- a/cpp/test/Ice/location/AllTests.cpp +++ b/cpp/test/Ice/location/AllTests.cpp @@ -228,7 +228,7 @@ allTests(const Ice::CommunicatorPtr& communicator, const string& ref) test(++count == locator->getRequestCount()); communicator->stringToProxy("test@TestAdapter")->ice_locatorCacheTimeout(1)->ice_ping(); // 1s timeout. test(count == locator->getRequestCount()); - IceUtil::ThreadControl::sleep(IceUtil::Time::seconds(1)); + IceUtil::ThreadControl::sleep(IceUtil::Time::milliSeconds(1200)); communicator->stringToProxy("test@TestAdapter")->ice_locatorCacheTimeout(1)->ice_ping(); // 1s timeout. test(++count == locator->getRequestCount()); @@ -237,7 +237,7 @@ allTests(const Ice::CommunicatorPtr& communicator, const string& ref) test(count == locator->getRequestCount()); communicator->stringToProxy("test")->ice_locatorCacheTimeout(1)->ice_ping(); // 1s timeout test(count == locator->getRequestCount()); - IceUtil::ThreadControl::sleep(IceUtil::Time::seconds(1)); + IceUtil::ThreadControl::sleep(IceUtil::Time::milliSeconds(1200)); communicator->stringToProxy("test")->ice_locatorCacheTimeout(1)->ice_ping(); // 1s timeout count += 2; test(count == locator->getRequestCount()); diff --git a/cs/test/Ice/location/AllTests.cs b/cs/test/Ice/location/AllTests.cs index 7325e309e38..7b32e86000f 100755 --- a/cs/test/Ice/location/AllTests.cs +++ b/cs/test/Ice/location/AllTests.cs @@ -209,7 +209,7 @@ public class AllTests test(++count == locator.getRequestCount()); communicator.stringToProxy("test@TestAdapter").ice_locatorCacheTimeout(1).ice_ping(); // 1s timeout. test(count == locator.getRequestCount()); - System.Threading.Thread.Sleep(new System.TimeSpan(10 * 1000 * 1000)); // 1s + System.Threading.Thread.Sleep(new System.TimeSpan(10 * 1200 * 1000)); // 1200ms communicator.stringToProxy("test@TestAdapter").ice_locatorCacheTimeout(1).ice_ping(); // 1s timeout. test(++count == locator.getRequestCount()); @@ -218,7 +218,7 @@ public class AllTests test(count == locator.getRequestCount()); communicator.stringToProxy("test").ice_locatorCacheTimeout(1).ice_ping(); // 1s timeout test(count == locator.getRequestCount()); - System.Threading.Thread.Sleep(new System.TimeSpan(10 * 1000 * 1000)); // 1s + System.Threading.Thread.Sleep(new System.TimeSpan(10 * 1200 * 1000)); // 1200ms communicator.stringToProxy("test").ice_locatorCacheTimeout(1).ice_ping(); // 1s timeout count += 2; test(count == locator.getRequestCount()); |