Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelandis committed Sep 23, 2024
1 parent 80d97cd commit 4c8fc78
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,11 +370,11 @@ private void assertDocs(
Version oldVersion,
int numberOfShards
) throws IOException {
RequestOptions v7RequestOptions = RequestOptions.DEFAULT.toBuilder()
.addHeader("Content-Type", "application/vnd.elasticsearch+json;compatible-with=7")
.addHeader("Accept", "application/vnd.elasticsearch+json;compatible-with=7")
RequestOptions v8RequestOptions = RequestOptions.DEFAULT.toBuilder()
.addHeader("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8")
.addHeader("Accept", "application/vnd.elasticsearch+json;compatible-with=8")
.build();
RequestOptions randomRequestOptions = randomBoolean() ? RequestOptions.DEFAULT : v7RequestOptions;
RequestOptions randomRequestOptions = randomBoolean() ? RequestOptions.DEFAULT : v8RequestOptions;

// run a search against the index
SearchResponse searchResponse = search(index, null, randomRequestOptions);
Expand Down

0 comments on commit 4c8fc78

Please sign in to comment.