Permalink
Browse files

ISPN-2519 - Test org.infinispan.loaders.decorators.BatchAsyncCacheSto…

…reTest.indexWasStored fails randomly
  • Loading branch information...
1 parent 90793a5 commit 37ae5be294fccebdc908282ad193e58056a78f92 @andyuk1986 andyuk1986 committed with pruivo Mar 12, 2013
@@ -28,6 +28,7 @@
import org.infinispan.AdvancedCache;
import org.infinispan.config.CacheLoaderManagerConfig;
import org.infinispan.config.Configuration;
+import org.infinispan.config.GlobalConfiguration;
import org.infinispan.loaders.CacheStoreConfig;
import org.infinispan.loaders.file.FileCacheStoreConfig;
import org.infinispan.manager.EmbeddedCacheManager;
@@ -61,7 +62,8 @@ protected EmbeddedCacheManager createCacheManager() throws Exception {
configuration.setCacheMode(Configuration.CacheMode.LOCAL);
configuration.setInvocationBatchingEnabled(true);
enableTestJdbcStorage(configuration);
- return TestCacheManagerFactory.createCacheManager(configuration);
+
+ return TestCacheManagerFactory.createCacheManager(GlobalConfiguration.getNonClusteredDefault(), configuration);
}
private void enableTestJdbcStorage(Configuration configuration) throws Exception {

0 comments on commit 37ae5be

Please sign in to comment.