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

commit 710e9a75ee5c82510272f7e15d49b54415c82136
Author: Michael <[email protected]>
AuthorDate: Tue Jun 23 20:31:39 2020 +0700

    commented unused code throwing an expection and slowing test
---
 .../Codecs/Asserting/AssertingDocValuesFormat.cs     | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git 
a/src/Lucene.Net.TestFramework/Codecs/Asserting/AssertingDocValuesFormat.cs 
b/src/Lucene.Net.TestFramework/Codecs/Asserting/AssertingDocValuesFormat.cs
index e88c5c4..dbab410 100644
--- a/src/Lucene.Net.TestFramework/Codecs/Asserting/AssertingDocValuesFormat.cs
+++ b/src/Lucene.Net.TestFramework/Codecs/Asserting/AssertingDocValuesFormat.cs
@@ -243,15 +243,17 @@ namespace Lucene.Net.Codecs.Asserting
                     Debug.Assert(hasNext);
                     T v = iterator.Current;
                     Debug.Assert(allowNull || v != null);
-                    try
-                    {
-                        iterator.Reset();
-                        throw new InvalidOperationException("broken iterator 
(supports remove): " + iterator);
-                    }
-                    catch (System.NotSupportedException)
-                    {
-                        // ok
-                    }
+
+                    // LUCENE.NET specific. removed call to Reset().
+                    //try
+                    //{
+                    //    iterator.Reset();
+                    //    throw new InvalidOperationException("broken iterator 
(supports remove): " + iterator);
+                    //}
+                    //catch (System.NotSupportedException)
+                    //{
+                    //    // ok
+                    //}
                 }
                 Debug.Assert(!iterator.MoveNext());
                 /*try

Reply via email to