mirror of https://github.com/apache/lucene.git
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:
parent
d515ff3d9e
commit
4f333721df
|
@ -104,9 +104,8 @@ public class SoftAutoCommitTest extends AbstractSolrTestCase {
|
|||
// toss in another doc, shouldn't affect first hard commit time we poll
|
||||
assertU(adoc("id", "530", "subject", "just for noise/activity"));
|
||||
|
||||
// wait for the hard commit, shouldn't need any fudge given
|
||||
// other actions already taken
|
||||
Long hard529 = monitor.hard.poll(hardCommitWaitMillis * 2, MILLISECONDS);
|
||||
// wait for the hard commit
|
||||
Long hard529 = monitor.hard.poll(hardCommitWaitMillis * 5, MILLISECONDS);
|
||||
assertNotNull("hard529 wasn't fast enough", hard529);
|
||||
monitor.assertSaneOffers();
|
||||
|
||||
|
@ -226,9 +225,8 @@ public class SoftAutoCommitTest extends AbstractSolrTestCase {
|
|||
// toss in another doc, shouldn't affect first hard commit time we poll
|
||||
assertU(adoc("id", "550", "subject", "just for noise/activity"));
|
||||
|
||||
// wait for the hard commit, shouldn't need any fudge given
|
||||
// other actions already taken
|
||||
hard529 = monitor.hard.poll(hardCommitWaitMillis * 2, MILLISECONDS);
|
||||
// wait for the hard commit
|
||||
hard529 = monitor.hard.poll(hardCommitWaitMillis * 3, MILLISECONDS);
|
||||
assertNotNull("hard529 wasn't fast enough", hard529);
|
||||
monitor.assertSaneOffers();
|
||||
|
||||
|
|
Loading…
Reference in New Issue