enhanced assert message in testAddIndexesWithThreads()

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1097339 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Simon Willnauer 2011-04-28 07:22:06 +00:00
parent 1f67321074
commit 2245b7960f
1 changed files with 2 additions and 2 deletions

View File

@ -771,11 +771,11 @@ public class TestAddIndexes extends LuceneTestCase {
c.joinThreads(); c.joinThreads();
int expectedNumDocs = 100+NUM_COPY*(4*NUM_ITER/5)*RunAddIndexesThreads.NUM_THREADS*RunAddIndexesThreads.NUM_INIT_DOCS; int expectedNumDocs = 100+NUM_COPY*(4*NUM_ITER/5)*RunAddIndexesThreads.NUM_THREADS*RunAddIndexesThreads.NUM_INIT_DOCS;
assertEquals(expectedNumDocs, c.writer2.numDocs()); assertEquals("expected num docs don't match - failures: " + c.failures, expectedNumDocs, c.writer2.numDocs());
c.close(true); c.close(true);
assertTrue(c.failures.size() == 0); assertTrue("found unexpected failures: " + c.failures, c.failures.isEmpty());
_TestUtil.checkIndex(c.dir2); _TestUtil.checkIndex(c.dir2);