Lucene.Net.TestFramework.Index.RandomCodec: Added [IgnoreCodec] attribute 
because in Lucene the test environment doesn't use RandomCodec as the default 
for Lucene46


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

Branch: refs/heads/api-work
Commit: 0b98392e164670c0f9189336f506590b86264922
Parents: f87315b
Author: Shad Storhaug <[email protected]>
Authored: Sun Mar 5 15:48:43 2017 +0700
Committer: Shad Storhaug <[email protected]>
Committed: Sun Mar 5 17:08:50 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.TestFramework/Index/RandomCodec.cs | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/0b98392e/src/Lucene.Net.TestFramework/Index/RandomCodec.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/RandomCodec.cs 
b/src/Lucene.Net.TestFramework/Index/RandomCodec.cs
index bab0903..ad380de 100644
--- a/src/Lucene.Net.TestFramework/Index/RandomCodec.cs
+++ b/src/Lucene.Net.TestFramework/Index/RandomCodec.cs
@@ -1,3 +1,4 @@
+using Lucene.Net.Codecs;
 using Lucene.Net.Support;
 using Lucene.Net.Util;
 using System;
@@ -64,6 +65,7 @@ namespace Lucene.Net.Index
     /// documents in different orders and the test will still be deterministic
     /// and reproducable.
     /// </summary>
+    [IgnoreCodec] // LUCENENET specific - we don't want this codec to replace 
Lucene46Codec during testing - some of these codecs are read-only
     public class RandomCodec : Lucene46Codec
     {
         /// <summary>

Reply via email to