You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/03/11 05:52:59 UTC

[06/16] lucenenet git commit: BUG: Lucene.Net.Tests.Spatial.DistanceStrategyTest: corrected SetUp calling order to initialize the strategy before calling the base class (which was letting invalid codecs through).

BUG: Lucene.Net.Tests.Spatial.DistanceStrategyTest: corrected SetUp calling order to initialize the strategy before calling the base class (which was letting invalid codecs through).


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

Branch: refs/heads/api-work
Commit: 4a9c74e86c0e0c22671e7b11cc52853b8ee2b771
Parents: 909063c
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Fri Mar 10 18:01:18 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Fri Mar 10 18:01:18 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Tests.Spatial/DistanceStrategyTest.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4a9c74e8/src/Lucene.Net.Tests.Spatial/DistanceStrategyTest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Spatial/DistanceStrategyTest.cs b/src/Lucene.Net.Tests.Spatial/DistanceStrategyTest.cs
index 5f0aa7b..0b641c0 100644
--- a/src/Lucene.Net.Tests.Spatial/DistanceStrategyTest.cs
+++ b/src/Lucene.Net.Tests.Spatial/DistanceStrategyTest.cs
@@ -85,10 +85,10 @@ namespace Lucene.Net.Spatial
 
         public override void SetUp()
         {
-            base.SetUp();
             SpatialStrategy strategy = ((Param)(RandomInts.RandomFrom(Random(), Parameters()))[0]).strategy;
             this.ctx = strategy.SpatialContext;
             this.strategy = strategy;
+            base.SetUp();
         }