Author: kwright
Date: Mon Jan 19 14:18:14 2015
New Revision: 1653010
URL: http://svn.apache.org/r1653010
Log:
Debug the new test
Modified:
manifoldcf/trunk/framework/build.xml
manifoldcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectionChangeTester.java
Modified: manifoldcf/trunk/framework/build.xml
URL:
http://svn.apache.org/viewvc/manifoldcf/trunk/framework/build.xml?rev=1653010&r1=1653009&r2=1653010&view=diff
==============================================================================
--- manifoldcf/trunk/framework/build.xml (original)
+++ manifoldcf/trunk/framework/build.xml Mon Jan 19 14:18:14 2015
@@ -1798,6 +1798,7 @@
</classpath>
<formatter type="brief" usefile="false"/>
+ <test
name="org.apache.manifoldcf.crawler.tests.ConnectionChangeHSQLDBTest"
todir="test-output"/>
<test
name="org.apache.manifoldcf.crawler.tests.SchedulerHSQLDBTest"
todir="test-output"/>
<test
name="org.apache.manifoldcf.crawler.tests.InterruptionHSQLDBTest"
todir="test-output"/>
Modified:
manifoldcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectionChangeTester.java
URL:
http://svn.apache.org/viewvc/manifoldcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectionChangeTester.java?rev=1653010&r1=1653009&r2=1653010&view=diff
==============================================================================
---
manifoldcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectionChangeTester.java
(original)
+++
manifoldcf/trunk/framework/pull-agent/src/test/java/org/apache/manifoldcf/crawler/tests/ConnectionChangeTester.java
Mon Jan 19 14:18:14 2015
@@ -69,7 +69,7 @@ public class ConnectionChangeTester
IJobManager jobManager = JobManagerFactory.make(tc);
IJobDescription job = jobManager.createJob();
job.setDescription("Test Job");
- job.setConnectionName("InterruptionTest Connection");
+ job.setConnectionName("ConnectionChangeTest Connection");
job.addPipelineStage(-1,true,"Null Connection","");
//job.setOutputConnectionName("Null Connection");
job.setType(job.TYPE_SPECIFIED);
@@ -92,7 +92,7 @@ public class ConnectionChangeTester
// Wait for the job to become inactive. The time should not exceed 10
seconds for the actual crawl.
instance.waitJobInactiveNative(jobManager,job.getID(),30000L);
// The document will be skipped in the end.
- if (jobManager.getStatus(job.getID()).getDocumentsProcessed() != 9)
+ if (jobManager.getStatus(job.getID()).getDocumentsProcessed() != 10)
throw new Exception("Expected 10 documents, saw
"+jobManager.getStatus(job.getID()).getDocumentsProcessed());
// Now, delete the job.