lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r883332 - /incubator/lucene.net/trunk/C#/src/Test/Search/TestTimeLimitedCollector.cs
Date Mon, 23 Nov 2009 13:09:10 GMT
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;
 			}



Mime
View raw message