mayya-sharipova commented on a change in pull request #317:
URL: https://github.com/apache/lucene/pull/317#discussion_r714782981
##########
File path:
lucene/core/src/test/org/apache/lucene/search/TestSortOptimization.java
##########
@@ -675,7 +674,23 @@ public void testMaxDocVisited() throws IOException {
public void testRandomLong() throws IOException {
Directory dir = newDirectory();
IndexWriter writer = new IndexWriter(dir, new IndexWriterConfig());
- List<Long> seqNos = LongStream.range(0,
atLeast(10_000)).boxed().collect(Collectors.toList());
+ int numDocs = 10000 + random().nextInt(10000);
Review comment:
may be instead of `numDocs` call this something else, because `numDocs`
will be actually `seqNos.size()`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]