diff options
Diffstat (limited to 'cpp/test/Ice/adapterDeactivation/Collocated.cpp')
-rw-r--r-- | cpp/test/Ice/adapterDeactivation/Collocated.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/test/Ice/adapterDeactivation/Collocated.cpp b/cpp/test/Ice/adapterDeactivation/Collocated.cpp index ef093c73098..48763b3ba41 100644 --- a/cpp/test/Ice/adapterDeactivation/Collocated.cpp +++ b/cpp/test/Ice/adapterDeactivation/Collocated.cpp @@ -22,6 +22,12 @@ int run(int, char**, const Ice::CommunicatorPtr& communicator) { communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12010"); + + // + // 2 threads are necessary to dispatch the collocated transient() call with AMI + // + communicator->getProperties()->setProperty("TestAdapter.ThreadPool.Size", "2"); + Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter"); ServantLocatorPtr locator = new ServantLocatorI; adapter->addServantLocator(locator, ""); |