You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ar...@apache.org on 2009/11/23 14:09:10 UTC

svn commit: r883332 - /incubator/lucene.net/trunk/C#/src/Test/Search/TestTimeLimitedCollector.cs

Author: aroush
Date: Mon Nov 23 13:09:10 2009
New Revision: 883332

URL: http://svn.apache.org/viewvc?rev=883332&view=rev
Log:
LUCENENET-301: Tests on TestTimeLimitedCollector fail

Modified:
    incubator/lucene.net/trunk/C#/src/Test/Search/TestTimeLimitedCollector.cs

Modified: incubator/lucene.net/trunk/C#/src/Test/Search/TestTimeLimitedCollector.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/TestTimeLimitedCollector.cs?rev=883332&r1=883331&r2=883332&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/TestTimeLimitedCollector.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/TestTimeLimitedCollector.cs Mon Nov 23 13:09:10 2009
@@ -377,6 +377,7 @@
 					}
 				}
 				System.Diagnostics.Debug.Assert(docId >= 0, "doc=" + docId);
+                bits.Length = Math.Max(bits.Length, docId + 1);
 				bits.Set(docId, true);
 				lastDocCollected = docId;
 			}