Skip to content

Commit

Permalink
fix tests that set indices or indices options on a PIT search
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczi committed Dec 8, 2023
1 parent bcd1b13 commit f14d5a0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public void testRetryPointInTime() throws Exception {
final String pitId = client().execute(TransportOpenPointInTimeAction.TYPE, openPointInTimeRequest).actionGet().getPointInTimeId();
try {
assertNoFailuresAndResponse(
prepareSearch().setIndices(indexName).setPreference(null).setPointInTime(new PointInTimeBuilder(pitId)),
prepareSearch().setPreference(null).setPointInTime(new PointInTimeBuilder(pitId)),
searchResponse -> {
assertThat(searchResponse.pointInTimeId(), equalTo(pitId));
assertHitCount(searchResponse, numDocs);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ public void testCloseFreezeAndOpen() throws Exception {
try {
for (int from = 0; from < 3; from++) {
searchResponse = client().prepareSearch()
.setIndicesOptions(IndicesOptions.STRICT_EXPAND_OPEN_FORBID_CLOSED)
.setPointInTime(new PointInTimeBuilder(pitId))
.setSize(1)
.setFrom(from)
Expand Down

0 comments on commit f14d5a0

Please sign in to comment.