You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2015/01/07 01:41:16 UTC
[2/2] lucenenet git commit: Better failure description
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 <it...@code972.com>
Authored: Wed Jan 7 02:41:05 2015 +0200
Committer: Itamar Syn-Hershko <it...@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()));