diff options
author | Benoit Foucher <benoit@zeroc.com> | 2019-09-09 09:50:25 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2019-09-09 09:51:23 +0200 |
commit | c50f95ab20c2a3ea66adb333d319af8452a01bc8 (patch) | |
tree | 0853be3db80b3755ca6050f2ffeb9e6be5163f1a /cpp/test | |
parent | Swift testing left keychain files behind - Close #511 (diff) | |
download | ice-c50f95ab20c2a3ea66adb333d319af8452a01bc8.tar.bz2 ice-c50f95ab20c2a3ea66adb333d319af8452a01bc8.tar.xz ice-c50f95ab20c2a3ea66adb333d319af8452a01bc8.zip |
Fix for IceGrid/replication failure, fixes #514
Diffstat (limited to 'cpp/test')
-rw-r--r-- | cpp/test/IceGrid/replication/AllTests.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/cpp/test/IceGrid/replication/AllTests.cpp b/cpp/test/IceGrid/replication/AllTests.cpp index b477913949c..a1670e49ac4 100644 --- a/cpp/test/IceGrid/replication/AllTests.cpp +++ b/cpp/test/IceGrid/replication/AllTests.cpp @@ -1425,11 +1425,15 @@ allTests(Test::TestHelper* helper) comm->stringToProxy("test -e 1.0@TestReplicaGroup")->ice_locator( masterLocator->ice_encodingVersion(Ice::Encoding_1_0))->ice_locatorCacheTimeout(0)->ice_ping(); + comm->stringToProxy("test -e 1.0@TestAdapter.Server1")->ice_locator( + masterLocator->ice_encodingVersion(Ice::Encoding_1_0))->ice_locatorCacheTimeout(0)->ice_ping(); + comm->stringToProxy("test -e 1.0@TestAdapter.Server2")->ice_locator( + masterLocator->ice_encodingVersion(Ice::Encoding_1_0))->ice_locatorCacheTimeout(0)->ice_ping(); QueryPrx query = QueryPrx::uncheckedCast( comm->stringToProxy("RepTestIceGrid/Query")->ice_locator(masterLocator)); test(query->findAllReplicas(comm->stringToProxy("test")).size() == 2); - masterAdmin->getAdapterInfo("TestReplicaGroup"); + test(masterAdmin->getAdapterInfo("TestReplicaGroup").size() == 2); admin->sendSignal("Node2", "SIGSTOP"); @@ -1437,16 +1441,16 @@ allTests(Test::TestHelper* helper) try { masterAdmin->ice_invocationTimeout(1000)->getAdapterInfo("TestReplicaGroup"); + admin->sendSignal("Node2", "SIGCONT"); test(false); } catch(const Ice::InvocationTimeoutException&) { + admin->sendSignal("Node2", "SIGCONT"); } - admin->sendSignal("Node2", "SIGCONT"); - test(query->findAllReplicas(comm->stringToProxy("test")).size() == 2); - masterAdmin->ice_invocationTimeout(1000)->getAdapterInfo("TestReplicaGroup"); + test(masterAdmin->ice_invocationTimeout(1000)->getAdapterInfo("TestReplicaGroup").size() == 2); masterAdmin->removeApplication("TestApp"); |