lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [1/8] lucenenet git commit: Lucene.Net.Tests.Support.TestOSClass: Removed dependency on AppSettings class.
Date Thu, 13 Apr 2017 00:24:26 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/api-work d52370256 -> fd57cc349


Lucene.Net.Tests.Support.TestOSClass: Removed dependency on AppSettings class.


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

Branch: refs/heads/api-work
Commit: 47e6487550530eab92090f6cacf2a87b7a5171a0
Parents: d523702
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Thu Apr 13 00:57:08 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Apr 13 00:57:08 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Tests/Support/TestOSClass.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/47e64875/src/Lucene.Net.Tests/Support/TestOSClass.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Support/TestOSClass.cs b/src/Lucene.Net.Tests/Support/TestOSClass.cs
index 07df552..23b257c 100644
--- a/src/Lucene.Net.Tests/Support/TestOSClass.cs
+++ b/src/Lucene.Net.Tests/Support/TestOSClass.cs
@@ -21,6 +21,7 @@
 
 using Lucene.Net.Attributes;
 using NUnit.Framework;
+using System.IO;
 
 namespace Lucene.Net.Support
 {
@@ -31,7 +32,7 @@ namespace Lucene.Net.Support
         [Test, LuceneNetSpecific]
         public void TestFSDirectorySync()
         {
-            System.IO.DirectoryInfo path = new System.IO.DirectoryInfo(System.IO.Path.Combine(AppSettings.Get("tempDir",
""), "testsync"));
+            DirectoryInfo path = new DirectoryInfo(Path.Combine(Path.GetTempPath(), "testsync"));
             Lucene.Net.Store.Directory directory = new Lucene.Net.Store.SimpleFSDirectory(path,
null);
             try
             {


Mime
View raw message