lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [07/18] lucenenet git commit: Nicer failures
Date Tue, 06 Jan 2015 03:46:23 GMT
Nicer failures


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

Branch: refs/heads/master
Commit: c7473a53dfd83720117abd6f352d5fe881f8232e
Parents: 36582a3
Author: Itamar Syn-Hershko <itamar@code972.com>
Authored: Mon Jan 5 17:42:05 2015 +0200
Committer: Itamar Syn-Hershko <itamar@code972.com>
Committed: Mon Jan 5 17:42:05 2015 +0200

----------------------------------------------------------------------
 src/Lucene.Net.TestFramework/Store/MockDirectoryWrapper.cs | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c7473a53/src/Lucene.Net.TestFramework/Store/MockDirectoryWrapper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Store/MockDirectoryWrapper.cs b/src/Lucene.Net.TestFramework/Store/MockDirectoryWrapper.cs
index b202c99..c4f8089 100644
--- a/src/Lucene.Net.TestFramework/Store/MockDirectoryWrapper.cs
+++ b/src/Lucene.Net.TestFramework/Store/MockDirectoryWrapper.cs
@@ -909,11 +909,12 @@ namespace Lucene.Net.Store
 
                     // RuntimeException instead ofSystem.IO.IOException because
                     // super() does not throwSystem.IO.IOException currently:
-                    throw new Exception("MockDirectoryWrapper: cannot close: there are still
open files: " + OpenFiles, cause);
+                    throw new Exception("MockDirectoryWrapper: cannot close: there are still
open files: "
+                        + String.Join(" ,", OpenFiles.ToArray().Select(x => x.Key)), cause);
                 }
                 if (OpenLocks.Count > 0)
                 {
-                    throw new Exception("MockDirectoryWrapper: cannot close: there are still
open locks: " + OpenLocks);
+                    throw new Exception("MockDirectoryWrapper: cannot close: there are still
open locks: " + OpenLocks.ToArray());
                 }
 
                 IsOpen = false;


Mime
View raw message