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 2014/07/21 16:15:35 UTC
svn commit: r1612278 -
/manifoldcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/SchedulerTester.java
Author: kwright
Date: Mon Jul 21 14:15:34 2014
New Revision: 1612278
URL: http://svn.apache.org/r1612278
Log:
Find out just how long schedule tester is taking on Jenkins
Modified:
manifoldcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/SchedulerTester.java
Modified: manifoldcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/SchedulerTester.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/SchedulerTester.java?rev=1612278&r1=1612277&r2=1612278&view=diff
==============================================================================
--- manifoldcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/SchedulerTester.java (original)
+++ manifoldcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/SchedulerTester.java Mon Jul 21 14:15:34 2014
@@ -95,13 +95,15 @@ public class SchedulerTester
// Wait for the job to become inactive. The time should be at least long enough to handle
// 100 documents per bin, but not significantly greater than that. Let's say 120 seconds.
long startTime = System.currentTimeMillis();
- instance2.waitJobInactiveNative(jobManager,job.getID(),160000L);
+ instance2.waitJobInactiveNative(jobManager,job.getID(),1200000L);
long endTime = System.currentTimeMillis();
+ System.out.println("Crawl took "+(endTime-startTime)+" milliseconds");
if (jobManager.getStatus(job.getID()).getDocumentsProcessed() != 10+10*200)
throw new Exception("Expected 2010 documents, saw "+jobManager.getStatus(job.getID()).getDocumentsProcessed());
+ if (endTime - startTime > 150000L)
+ throw new Exception("Expected crawl to complete in less than 150 seconds; took "+(endTime-startTime)+" ms");
if (endTime-startTime < 96000L)
throw new Exception("Job finished too quickly; throttling clearly failed");
- System.out.println("Crawl took "+(endTime-startTime)+" milliseconds");
// Now, delete the job.
jobManager.deleteJob(job.getID());