Skip to content

Commit

Permalink
Make Rest-High-Rest-Level tests allow deprecation warning temporarily…
Browse files Browse the repository at this point in the history
…, during deprecation of request parameter 'master_timeout' (#2702)

Temporarily build rest client with setStrictDeprecationMode(false) to allow
deprecation warning in HLRC tests while master_timeout parameters is
being refactored.

Signed-off-by: Tianli Feng <[email protected]>
(cherry picked from commit 6a2a33d)
  • Loading branch information
Tianli Feng authored and github-actions[bot] committed Apr 4, 2022
1 parent e3891c7 commit 2b23bfe
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,8 @@ protected String getProtocol() {
protected RestClient buildClient(Settings settings, HttpHost[] hosts) throws IOException {
RestClientBuilder builder = RestClient.builder(hosts);
configureClient(builder, settings);
builder.setStrictDeprecationMode(true);
// TODO: set the method argument to 'true' after PR https://github.com/opensearch-project/OpenSearch/pull/2683 merged.
builder.setStrictDeprecationMode(false);
return builder.build();
}

Expand Down

0 comments on commit 2b23bfe

Please sign in to comment.