You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2013/12/02 12:20:54 UTC

svn commit: r1546964 - in /manifoldcf/branches/CONNECTORS-781/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests: SchedulerTester.java SchedulingRepositoryConnector.java

Author: kwright
Date: Mon Dec  2 11:20:54 2013
New Revision: 1546964

URL: http://svn.apache.org/r1546964
Log:
Do twice as many documents with 1/2 the wait, for a better test.

Modified:
    manifoldcf/branches/CONNECTORS-781/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/SchedulerTester.java
    manifoldcf/branches/CONNECTORS-781/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/SchedulingRepositoryConnector.java

Modified: manifoldcf/branches/CONNECTORS-781/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/SchedulerTester.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-781/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/SchedulerTester.java?rev=1546964&r1=1546963&r2=1546964&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-781/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/SchedulerTester.java (original)
+++ manifoldcf/branches/CONNECTORS-781/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/SchedulerTester.java Mon Dec  2 11:20:54 2013
@@ -85,8 +85,8 @@ public class SchedulerTester
     long startTime = System.currentTimeMillis();
     instance.waitJobInactiveNative(jobManager,job.getID(),150000L);
     long endTime = System.currentTimeMillis();
-    if (jobManager.getStatus(job.getID()).getDocumentsProcessed() != 10+10*100)
-      throw new Exception("Expected 1010 documents, saw "+jobManager.getStatus(job.getID()).getDocumentsProcessed());
+    if (jobManager.getStatus(job.getID()).getDocumentsProcessed() != 10+10*200)
+      throw new Exception("Expected 2010 documents, saw "+jobManager.getStatus(job.getID()).getDocumentsProcessed());
     if (endTime-startTime < 96000L)
       throw new Exception("Job finished too quickly; throttling clearly failed");
     System.out.println("Crawl took "+(endTime-startTime)+" milliseconds");

Modified: manifoldcf/branches/CONNECTORS-781/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/SchedulingRepositoryConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-781/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/SchedulingRepositoryConnector.java?rev=1546964&r1=1546963&r2=1546964&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-781/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/SchedulingRepositoryConnector.java (original)
+++ manifoldcf/branches/CONNECTORS-781/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/SchedulingRepositoryConnector.java Mon Dec  2 11:20:54 2013
@@ -80,11 +80,11 @@ public class SchedulingRepositoryConnect
   {
     String documentsPerSeedString = params.getParameter("documentsperseed");
     if (documentsPerSeedString == null)
-      documentsPerSeedString = "100";
+      documentsPerSeedString = "200";
     int documentsPerSeed = Integer.parseInt(documentsPerSeedString);
     String timePerDocumentString = params.getParameter("timeperdocument");
     if (timePerDocumentString == null)
-      timePerDocumentString = "1000";
+      timePerDocumentString = "500";
     int timePerDocument = Integer.parseInt(timePerDocumentString);
 
     // Seeds process instantly; other documents have a throttle based on the bin.