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/06/19 16:32:55 UTC
[2/2] lucenenet git commit: fix the same issue in teardown
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 <la...@gmail.com>
Authored: Tue Jun 2 21:09:12 2015 -0400
Committer: Laimonas Simutis <la...@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