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: fix the same issue in teardown
Date Fri, 19 Jun 2015 14:32:55 GMT
fix the same issue in teardown


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

Branch: refs/heads/master
Commit: 26758e6ec60e75d3a608225e567111b5728cc9ff
Parents: cbdf72e
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Tue Jun 2 21:09:12 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Tue Jun 2 21:09:12 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.Tests/core/Search/TestDateFilter.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/26758e6e/src/Lucene.Net.Tests/core/Search/TestDateFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestDateFilter.cs b/src/Lucene.Net.Tests/core/Search/TestDateFilter.cs
index 9b31c2a..33a6831 100644
--- a/src/Lucene.Net.Tests/core/Search/TestDateFilter.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestDateFilter.cs
@@ -111,7 +111,7 @@ namespace Lucene.Net.Search
             Directory indexStore = NewDirectory();
             RandomIndexWriter writer = new RandomIndexWriter(Random(), indexStore);
 
-            long now = Environment.TickCount;
+            long now = DateTime.UtcNow.Ticks / TimeSpan.TicksPerMillisecond;
 
             Document doc = new Document();
             // add time that is in the future


Mime
View raw message