From 2245b7960f52305df81801a8e02edafa0915683f Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Thu, 28 Apr 2011 07:22:06 +0000 Subject: [PATCH] enhanced assert message in testAddIndexesWithThreads() git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1097339 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/src/test/org/apache/lucene/index/TestAddIndexes.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lucene/src/test/org/apache/lucene/index/TestAddIndexes.java b/lucene/src/test/org/apache/lucene/index/TestAddIndexes.java index 1e289b2ebca..097d9c9944d 100755 --- a/lucene/src/test/org/apache/lucene/index/TestAddIndexes.java +++ b/lucene/src/test/org/apache/lucene/index/TestAddIndexes.java @@ -771,11 +771,11 @@ public class TestAddIndexes extends LuceneTestCase { c.joinThreads(); 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); - assertTrue(c.failures.size() == 0); + assertTrue("found unexpected failures: " + c.failures, c.failures.isEmpty()); _TestUtil.checkIndex(c.dir2);