[dna-commits] DNA SVN: r214 - branches/federation/dna-spi/src/test/java/org/jboss/dna/spi/graph/connection.

dna-commits at lists.jboss.org dna-commits at lists.jboss.org
Fri May 30 14:35:27 EDT 2008


Author: rhauch
Date: 2008-05-30 14:35:27 -0400 (Fri, 30 May 2008)
New Revision: 214

Modified:
   branches/federation/dna-spi/src/test/java/org/jboss/dna/spi/graph/connection/RepositoryConnectionPoolTest.java
Log:
Attempt #2 to fix a test that runs locally but fails on Hudson.  These load tests run several clients simultaneously, and it looks like the jobs don't finish in the allotted time on the Hudson boxes, while they do locally.  This change ramps up the allotted time and reduces the number of concurrent clients (to something that is still representative and that still accomplishes the goal of the test).  Hopefully these will work.

Modified: branches/federation/dna-spi/src/test/java/org/jboss/dna/spi/graph/connection/RepositoryConnectionPoolTest.java
===================================================================
--- branches/federation/dna-spi/src/test/java/org/jboss/dna/spi/graph/connection/RepositoryConnectionPoolTest.java	2008-05-30 18:08:00 UTC (rev 213)
+++ branches/federation/dna-spi/src/test/java/org/jboss/dna/spi/graph/connection/RepositoryConnectionPoolTest.java	2008-05-30 18:35:27 UTC (rev 214)
@@ -160,7 +160,7 @@
         int numConnectionsInPool = 1;
         int numClients = 2;
         RepositoryOperation.Factory<Integer> operationFactory = RepositoryTestOperations.createMultipleLoadOperationFactory(env, 10);
-        runLoadTest(repositorySource, numConnectionsInPool, numClients, 2, TimeUnit.SECONDS, operationFactory);
+        runLoadTest(repositorySource, numConnectionsInPool, numClients, 4, TimeUnit.SECONDS, operationFactory);
     }
 
     @Test
@@ -168,7 +168,7 @@
         int numConnectionsInPool = 1;
         int numClients = 3;
         RepositoryOperation.Factory<Integer> operationFactory = RepositoryTestOperations.createMultipleLoadOperationFactory(env, 10);
-        runLoadTest(repositorySource, numConnectionsInPool, numClients, 2, TimeUnit.SECONDS, operationFactory);
+        runLoadTest(repositorySource, numConnectionsInPool, numClients, 4, TimeUnit.SECONDS, operationFactory);
     }
 
     @Test
@@ -176,15 +176,15 @@
         int numConnectionsInPool = 2;
         int numClients = 10;
         RepositoryOperation.Factory<Integer> operationFactory = RepositoryTestOperations.createMultipleLoadOperationFactory(env, 10);
-        runLoadTest(repositorySource, numConnectionsInPool, numClients, 2, TimeUnit.SECONDS, operationFactory);
+        runLoadTest(repositorySource, numConnectionsInPool, numClients, 4, TimeUnit.SECONDS, operationFactory);
     }
 
     @Test
     public void shouldClientsToRunConncurrentlyWithMultipleConnectionInPool() throws Exception {
         int numConnectionsInPool = 10;
-        int numClients = 200;
-        RepositoryOperation.Factory<Integer> operationFactory = RepositoryTestOperations.createMultipleLoadOperationFactory(env, 100);
-        List<Integer> results = runLoadTest(repositorySource, numConnectionsInPool, numClients, 4, TimeUnit.SECONDS, operationFactory);
+        int numClients = 50;
+        RepositoryOperation.Factory<Integer> operationFactory = RepositoryTestOperations.createMultipleLoadOperationFactory(env, 20);
+        List<Integer> results = runLoadTest(repositorySource, numConnectionsInPool, numClients, 10, TimeUnit.SECONDS, operationFactory);
         int total = 0;
         for (Integer integer : results) {
             if (integer != null) total += integer;




More information about the dna-commits mailing list