This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git


The following commit(s) were added to refs/heads/master by this push:
     new 0b1dfc8  BUG: 
Lucene.Net.TestFramework.Index.BasePostingsFormatTestCase: Removed 
IndexOptions.NONE from the list of available options, since this option is not 
valid for the tests (it was added as a placeholder for null).
0b1dfc8 is described below

commit 0b1dfc8bf14ec450a41f73815d7270b4494d2d99
Author: Shad Storhaug <[email protected]>
AuthorDate: Mon Nov 15 02:04:24 2021 +0700

    BUG: Lucene.Net.TestFramework.Index.BasePostingsFormatTestCase: Removed 
IndexOptions.NONE from the list of available options, since this option is not 
valid for the tests (it was added as a placeholder for null).
---
 src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs 
b/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs
index e177ec8..36d6814 100644
--- a/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs
@@ -7,6 +7,7 @@ using Lucene.Net.Util;
 using System;
 using System.Collections.Generic;
 using System.IO;
+using System.Linq;
 using JCG = J2N.Collections.Generic;
 using Console = Lucene.Net.Util.SystemConsole;
 using Assert = Lucene.Net.TestFramework.Assert;
@@ -541,7 +542,7 @@ namespace Lucene.Net.Index
         private FieldInfos currentFieldInfos;
 
         // LUCENENET specific - cache the list of index options so we don't 
need to look it up over and over
-        private static readonly IndexOptions[] ALL_INDEX_OPTIONS = 
(IndexOptions[])Enum.GetValues(typeof(IndexOptions));
+        private static readonly IndexOptions[] ALL_INDEX_OPTIONS = 
((IndexOptions[])Enum.GetValues(typeof(IndexOptions))).Where(x => x != 
IndexOptions.NONE).ToArray();
 
         // maxAllowed = the "highest" we can index, but we will still
         // randomly index at lower IndexOption

Reply via email to