[TEST] fix test problem after search refactoring

Original commit: elastic/x-pack-elasticsearch@10d4f061ce
This commit is contained in:
javanna 2015-10-16 15:42:41 +02:00 committed by Luca Cavanna
parent 215a554555
commit 7ec03c040b

View File

@ -161,8 +161,7 @@ public class IndexActionTests extends ESIntegTestCase {
SearchResponse searchResponse = client().prepareSearch("test-index")
.setTypes("test-type")
.addSort("foo", SortOrder.ASC)
.setSource(searchSource()
.setSource(searchSource().sort("foo", SortOrder.ASC)
.query(matchAllQuery())
.aggregation(terms("timestamps").field(customTimestampField ? timestampField : "_timestamp")))
.get();