Fix compile errors in QuerierTests (#65935)

This commit is contained in:
Przemysław Witek 2020-12-07 13:27:36 +01:00 committed by GitHub
parent 2ec53ea7c4
commit d562caf9b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -240,12 +240,14 @@ public class QuerierTests extends ESTestCase {
}
};
Cursor.Page page = new Cursor.Page(new TestResultRowSet<NamedWriteable>(List.of(randomHitExtractor(0)), new BitSet(), dataSize),
Cursor.EMPTY);
Cursor.Page page =
new Cursor.Page(
new TestResultRowSet<NamedWriteable>(Collections.singletonList(randomHitExtractor(0)), new BitSet(), dataSize),
Cursor.EMPTY);
AtomicInteger responses = new AtomicInteger();
AtomicInteger failures = new AtomicInteger();
ActionListener<Cursor.Page> listener = new ActionListener<>() {
ActionListener<Cursor.Page> listener = new ActionListener<Cursor.Page>() {
@Override
public void onResponse(Cursor.Page page) {
responses.getAndIncrement();