diff options
author | Benoit Foucher <benoit@zeroc.com> | 2019-09-12 12:42:29 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2019-09-12 12:42:29 +0200 |
commit | 71a5e2de60d3871ab421fd8c9c11c86c4217e36a (patch) | |
tree | 9146a30fc865b3008b8558e66f211fed58220323 /cpp/test | |
parent | Copy debug symbols with Swift builds - Close #522 (diff) | |
download | ice-71a5e2de60d3871ab421fd8c9c11c86c4217e36a.tar.bz2 ice-71a5e2de60d3871ab421fd8c9c11c86c4217e36a.tar.xz ice-71a5e2de60d3871ab421fd8c9c11c86c4217e36a.zip |
Minor IceGrid/replication fix to make sure the node is stopped
Diffstat (limited to 'cpp/test')
-rw-r--r-- | cpp/test/IceGrid/replication/AllTests.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cpp/test/IceGrid/replication/AllTests.cpp b/cpp/test/IceGrid/replication/AllTests.cpp index a1670e49ac4..96ecf08aa20 100644 --- a/cpp/test/IceGrid/replication/AllTests.cpp +++ b/cpp/test/IceGrid/replication/AllTests.cpp @@ -1436,6 +1436,17 @@ allTests(Test::TestHelper* helper) test(masterAdmin->getAdapterInfo("TestReplicaGroup").size() == 2); admin->sendSignal("Node2", "SIGSTOP"); + try + { + // Wait for Node2 to be stopped by getting the TestAdapter.Server2 enpdoints + while(true) + { + masterAdmin->ice_invocationTimeout(100)->getAdapterInfo("TestAdapter.Server2"); + } + } + catch(const Ice::InvocationTimeoutException&) + { + } test(query->findAllReplicas(comm->stringToProxy("test")).size() == 2); try |