LUCENE-9819: fix random failures in TestKnnGraph due to insufficient graph connectivity

This commit is contained in:
Michael Sokolov 2021-03-01 17:43:35 -05:00
parent 17c6a7c37f
commit 9e8207a558

View File

@ -59,7 +59,7 @@ public class TestKnnGraph extends LuceneTestCase {
public void setup() {
randSeed = random().nextLong();
if (random().nextBoolean()) {
maxConn = random().nextInt(256) + 2;
maxConn = random().nextInt(256) + 3;
}
int strategy = random().nextInt(SearchStrategy.values().length - 1) + 1;
searchStrategy = SearchStrategy.values()[strategy];