File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
test/framework/src/main/java/org/elasticsearch/index/mapper Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -54,28 +54,14 @@ public BooleansBuilder appendBoolean(boolean value) {
5454 public BlockLoader .BytesRefBuilder bytesRefsFromDocValues (int expectedCount ) {
5555 class BytesRefsFromDocValuesBuilder extends TestBlock .Builder implements BlockLoader .BytesRefBuilder {
5656 private BytesRefsFromDocValuesBuilder () {
57- super (1 );
57+ super (expectedCount );
5858 }
5959
6060 @ Override
6161 public BytesRefsFromDocValuesBuilder appendBytesRef (BytesRef value ) {
6262 add (BytesRef .deepCopyOf (value ));
6363 return this ;
6464 }
65-
66- @ Override
67- public TestBlock build () {
68- TestBlock result = super .build ();
69- List <?> r ;
70- if (result .values .get (0 ) instanceof List <?> l ) {
71- r = l ;
72- } else {
73- r = List .of (result .values .get (0 ));
74- }
75- assertThat (r , hasSize (expectedCount ));
76- return result ;
77- }
78-
7965 }
8066 return new BytesRefsFromDocValuesBuilder ();
8167 }
You can’t perform that action at this time.
0 commit comments