lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [2/2] lucenenet git commit: Better failure description
Date Wed, 07 Jan 2015 00:41:16 GMT
Better failure description


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/e3558b84
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/e3558b84
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/e3558b84

Branch: refs/heads/master
Commit: e3558b84b63350359bbc3fd510a97a4a8293b09e
Parents: 45133b2
Author: Itamar Syn-Hershko <itamar@code972.com>
Authored: Wed Jan 7 02:41:05 2015 +0200
Committer: Itamar Syn-Hershko <itamar@code972.com>
Committed: Wed Jan 7 02:41:05 2015 +0200

----------------------------------------------------------------------
 src/Lucene.Net.Tests/core/Index/TestAddIndexes.cs | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e3558b84/src/Lucene.Net.Tests/core/Index/TestAddIndexes.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestAddIndexes.cs b/src/Lucene.Net.Tests/core/Index/TestAddIndexes.cs
index ff95cca..fdc78d7 100644
--- a/src/Lucene.Net.Tests/core/Index/TestAddIndexes.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestAddIndexes.cs
@@ -1,5 +1,6 @@
 using System;
 using System.Collections.Generic;
+using System.Linq;
 using System.Threading;
 using Lucene.Net.Documents;
 
@@ -833,7 +834,8 @@ namespace Lucene.Net.Index
             c.JoinThreads();
 
             int expectedNumDocs = 100 + NUM_COPY * (4 * NUM_ITER / 5) * RunAddIndexesThreads.NUM_THREADS
* RunAddIndexesThreads.NUM_INIT_DOCS;
-            Assert.AreEqual(expectedNumDocs, c.Writer2.NumDocs(), "expected num docs don't
match - failures: " + c.Failures);
+            Assert.AreEqual(expectedNumDocs, c.Writer2.NumDocs(), "expected num docs don't
match - failures: " + Environment.NewLine
+                + string.Join(Environment.NewLine, c.Failures.Select(x => x.ToString())));
 
             c.Close(true);
 
@@ -1226,7 +1228,7 @@ namespace Lucene.Net.Index
                 }
             }
 
-            // LUCENE TODO: Pulsing41Codec is not in core
+            // LUCENENET TODO: Pulsing41Codec is not in core
             /*{
                 Directory dir = NewDirectory();
                 IndexWriterConfig conf = NewIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random()));


Mime
View raw message