Return-Path: X-Original-To: apmail-manifoldcf-commits-archive@www.apache.org Delivered-To: apmail-manifoldcf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 24DF2F960 for ; Tue, 30 Apr 2013 10:02:46 +0000 (UTC) Received: (qmail 85869 invoked by uid 500); 30 Apr 2013 10:02:44 -0000 Delivered-To: apmail-manifoldcf-commits-archive@manifoldcf.apache.org Received: (qmail 85747 invoked by uid 500); 30 Apr 2013 10:02:41 -0000 Mailing-List: contact commits-help@manifoldcf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@manifoldcf.apache.org Delivered-To: mailing list commits@manifoldcf.apache.org Received: (qmail 85693 invoked by uid 99); 30 Apr 2013 10:02:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Apr 2013 10:02:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Apr 2013 10:02:36 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 685C52388847; Tue, 30 Apr 2013 10:02:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1477527 - /manifoldcf/trunk/tests/webcrawler/src/test/java/org/apache/manifoldcf/webcrawler_tests/ThrottlingTester.java Date: Tue, 30 Apr 2013 10:02:15 -0000 To: commits@manifoldcf.apache.org From: kwright@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130430100215.685C52388847@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: kwright Date: Tue Apr 30 10:02:14 2013 New Revision: 1477527 URL: http://svn.apache.org/r1477527 Log: A version of throttle tester that actually fails Modified: manifoldcf/trunk/tests/webcrawler/src/test/java/org/apache/manifoldcf/webcrawler_tests/ThrottlingTester.java Modified: manifoldcf/trunk/tests/webcrawler/src/test/java/org/apache/manifoldcf/webcrawler_tests/ThrottlingTester.java URL: http://svn.apache.org/viewvc/manifoldcf/trunk/tests/webcrawler/src/test/java/org/apache/manifoldcf/webcrawler_tests/ThrottlingTester.java?rev=1477527&r1=1477526&r2=1477527&view=diff ============================================================================== --- manifoldcf/trunk/tests/webcrawler/src/test/java/org/apache/manifoldcf/webcrawler_tests/ThrottlingTester.java (original) +++ manifoldcf/trunk/tests/webcrawler/src/test/java/org/apache/manifoldcf/webcrawler_tests/ThrottlingTester.java Tue Apr 30 10:02:14 2013 @@ -105,7 +105,7 @@ public class ThrottlingTester // Set up 100 seeds SpecificationNode sn = new SpecificationNode(WebcrawlerConfig.NODE_SEEDS); StringBuilder sb = new StringBuilder(); - for (int i = 0 ; i < 10 ; i++) + for (int i = 0 ; i < 50 ; i++) { sb.append("http://localhost:8191/web/gen.php?site="+i+"&level=0&item=0\n"); } @@ -133,7 +133,7 @@ public class ThrottlingTester // Now, start the job, and wait until it completes. long startTime = System.currentTimeMillis(); jobManager.manualStart(job.getID()); - instance.waitJobInactiveNative(jobManager,job.getID(),300000L); + instance.waitJobInactiveNative(jobManager,job.getID(),900000L); System.err.println(" Crawl required "+new Long(System.currentTimeMillis()-startTime).toString()+" milliseconds"); // Check to be sure we actually processed the right number of documents. @@ -143,7 +143,7 @@ public class ThrottlingTester // Now, delete the job. jobManager.deleteJob(job.getID()); - instance.waitJobDeletedNative(jobManager,job.getID(),300000L); + instance.waitJobDeletedNative(jobManager,job.getID(),900000L); // Cleanup is automatic by the base class, so we can feel free to leave jobs and connections lying around. }