mirror of
https://github.com/apache/lucene.git
synced 2025-02-06 18:18:38 +00:00
Use jdk11 primitives in test to allow backport to branch_9x (#13311)
This commit is contained in:
parent
3ba7ebbad8
commit
bc678ac67e
@ -781,7 +781,7 @@ abstract class BaseKnnVectorQueryTestCase extends LuceneTestCase {
|
||||
TimeLimitingKnnCollectorManager noTimeoutManager =
|
||||
new TimeLimitingKnnCollectorManager(delegate, null);
|
||||
KnnCollector noTimeoutCollector =
|
||||
noTimeoutManager.newCollector(Integer.MAX_VALUE, searcher.leafContexts.getFirst());
|
||||
noTimeoutManager.newCollector(Integer.MAX_VALUE, searcher.leafContexts.get(0));
|
||||
|
||||
// Check that a normal collector is created without timeout
|
||||
assertTrue(noTimeoutCollector instanceof TopKnnCollector);
|
||||
@ -797,7 +797,7 @@ abstract class BaseKnnVectorQueryTestCase extends LuceneTestCase {
|
||||
TimeLimitingKnnCollectorManager timeoutManager =
|
||||
new TimeLimitingKnnCollectorManager(delegate, () -> true);
|
||||
KnnCollector timeoutCollector =
|
||||
timeoutManager.newCollector(Integer.MAX_VALUE, searcher.leafContexts.getFirst());
|
||||
timeoutManager.newCollector(Integer.MAX_VALUE, searcher.leafContexts.get(0));
|
||||
|
||||
// Check that a time limiting collector is created, which returns partial results
|
||||
assertFalse(timeoutCollector instanceof TopKnnCollector);
|
||||
|
Loading…
x
Reference in New Issue
Block a user