harden test against slow/busy computers

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1196811 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2011-11-02 21:30:52 +00:00
parent d515ff3d9e
commit 4f333721df
1 changed files with 4 additions and 6 deletions

View File

@ -104,9 +104,8 @@ public class SoftAutoCommitTest extends AbstractSolrTestCase {
// toss in another doc, shouldn't affect first hard commit time we poll // toss in another doc, shouldn't affect first hard commit time we poll
assertU(adoc("id", "530", "subject", "just for noise/activity")); assertU(adoc("id", "530", "subject", "just for noise/activity"));
// wait for the hard commit, shouldn't need any fudge given // wait for the hard commit
// other actions already taken Long hard529 = monitor.hard.poll(hardCommitWaitMillis * 5, MILLISECONDS);
Long hard529 = monitor.hard.poll(hardCommitWaitMillis * 2, MILLISECONDS);
assertNotNull("hard529 wasn't fast enough", hard529); assertNotNull("hard529 wasn't fast enough", hard529);
monitor.assertSaneOffers(); monitor.assertSaneOffers();
@ -226,9 +225,8 @@ public class SoftAutoCommitTest extends AbstractSolrTestCase {
// toss in another doc, shouldn't affect first hard commit time we poll // toss in another doc, shouldn't affect first hard commit time we poll
assertU(adoc("id", "550", "subject", "just for noise/activity")); assertU(adoc("id", "550", "subject", "just for noise/activity"));
// wait for the hard commit, shouldn't need any fudge given // wait for the hard commit
// other actions already taken hard529 = monitor.hard.poll(hardCommitWaitMillis * 3, MILLISECONDS);
hard529 = monitor.hard.poll(hardCommitWaitMillis * 2, MILLISECONDS);
assertNotNull("hard529 wasn't fast enough", hard529); assertNotNull("hard529 wasn't fast enough", hard529);
monitor.assertSaneOffers(); monitor.assertSaneOffers();