Author: gertv
Date: Fri Jan 30 12:10:31 2009
New Revision: 739252
URL: http://svn.apache.org/viewvc?rev=739252&view=rev
Log:
SM-1754: Using the same thread pool size as the distro for testing
Modified:
servicemix/components/engines/servicemix-eip/trunk/src/test/java/org/apache/servicemix/eip/AbstractEIPTest.java
Modified:
servicemix/components/engines/servicemix-eip/trunk/src/test/java/org/apache/servicemix/eip/AbstractEIPTest.java
URL:
http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-eip/trunk/src/test/java/org/apache/servicemix/eip/AbstractEIPTest.java?rev=739252&r1=739251&r2=739252&view=diff
==============================================================================
---
servicemix/components/engines/servicemix-eip/trunk/src/test/java/org/apache/servicemix/eip/AbstractEIPTest.java
(original)
+++
servicemix/components/engines/servicemix-eip/trunk/src/test/java/org/apache/servicemix/eip/AbstractEIPTest.java
Fri Jan 30 12:10:31 2009
@@ -79,10 +79,11 @@
protected void configureThreadPool(JBIContainer container) {
ExecutorFactoryImpl factory = new ExecutorFactoryImpl();
- // disable queuing and increase maximum thread pool size to 16 instead
+ // increase thread pool size to the level that's used in the
distribution
// to avoid deadlocking the unit tests (they use sendSync extensively)
- factory.getDefaultConfig().setMaximumPoolSize(16);
- factory.getDefaultConfig().setQueueSize(0);
+ factory.getDefaultConfig().setCorePoolSize(16);
+ factory.getDefaultConfig().setMaximumPoolSize(32);
+ factory.getDefaultConfig().setQueueSize(256);
container.setExecutorFactory(factory);
}