summaryrefslogtreecommitdiff
path: root/cpp/test/Glacier2/attack/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Glacier2/attack/Client.cpp')
-rw-r--r--cpp/test/Glacier2/attack/Client.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/test/Glacier2/attack/Client.cpp b/cpp/test/Glacier2/attack/Client.cpp
index b028a45e4a3..69022d72a15 100644
--- a/cpp/test/Glacier2/attack/Client.cpp
+++ b/cpp/test/Glacier2/attack/Client.cpp
@@ -32,8 +32,7 @@ main(int argc, char* argv[])
Ice::registerIceSSL();
#endif
- Ice::InitializationData initData;
- initData.properties = Ice::createProperties(argc, argv);
+ Ice::InitializationData initData = getTestInitData(argc, argv);
//
// We want to check whether the client retries for evicted
@@ -49,7 +48,7 @@ int
AttackClient::run(int, char**)
{
cout << "getting router... " << flush;
- ObjectPrx routerBase = communicator()->stringToProxy("Glacier2/router:default -p 12347");
+ ObjectPrx routerBase = communicator()->stringToProxy("Glacier2/router:" + getTestEndpoint(communicator(), 10));
Glacier2::RouterPrx router = Glacier2::RouterPrx::checkedCast(routerBase);
test(router);
communicator()->setDefaultRouter(router);
@@ -60,7 +59,7 @@ AttackClient::run(int, char**)
cout << "ok" << endl;
cout << "making thousands of invocations on proxies... " << flush;
- ObjectPrx backendBase = communicator()->stringToProxy("dummy:tcp -p 12010");
+ ObjectPrx backendBase = communicator()->stringToProxy("dummy:" + getTestEndpoint(communicator(), 0));
BackendPrx backend = BackendPrx::uncheckedCast(backendBase);
backend->ice_ping();
@@ -118,7 +117,8 @@ AttackClient::run(int, char**)
cout << "testing server and router shutdown... " << flush;
backend->shutdown();
communicator()->setDefaultRouter(0);
- ObjectPrx adminBase = communicator()->stringToProxy("Glacier2/admin -f Process:tcp -h 127.0.0.1 -p 12348");
+ ObjectPrx adminBase = communicator()->stringToProxy("Glacier2/admin -f Process:" +
+ getTestEndpoint(communicator(), 11, "tcp"));
Ice::ProcessPrx process = Ice::ProcessPrx::checkedCast(adminBase);
test(process);
process->shutdown();