Fix expectations around script fields as a consequence of https://github.com/elasticsearch/elasticsearch/pull/8592.
This commit is contained in:
parent
46b84777f6
commit
4549a3b4ee
|
@ -138,7 +138,7 @@ public class JavaScriptScriptSearchTests extends ElasticsearchIntegrationTest {
|
|||
assertThat(sObj2Arr2.get(0).toString(), equalTo("arr_value1"));
|
||||
assertThat(sObj2Arr2.get(1).toString(), equalTo("arr_value2"));
|
||||
|
||||
sObj2Arr2 = (List) response.getHits().getAt(0).field("s_obj2_arr2").value();
|
||||
sObj2Arr2 = (List) response.getHits().getAt(0).field("s_obj2_arr2").values();
|
||||
assertThat(sObj2Arr2.size(), equalTo(2));
|
||||
assertThat(sObj2Arr2.get(0).toString(), equalTo("arr_value1"));
|
||||
assertThat(sObj2Arr2.get(1).toString(), equalTo("arr_value2"));
|
||||
|
|
Loading…
Reference in New Issue