From 9916d9ca30c6aa7b0ddd0cc177a67e5f4e3e5f7f Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Tue, 15 May 2018 15:15:42 -0400 Subject: [PATCH] Fix test --- .../rest/action/admin/indices/RestResizeHandlerTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/java/org/elasticsearch/rest/action/admin/indices/RestResizeHandlerTests.java b/server/src/test/java/org/elasticsearch/rest/action/admin/indices/RestResizeHandlerTests.java index 06a9b8ba991f3..2eeb90d9ec9b9 100644 --- a/server/src/test/java/org/elasticsearch/rest/action/admin/indices/RestResizeHandlerTests.java +++ b/server/src/test/java/org/elasticsearch/rest/action/admin/indices/RestResizeHandlerTests.java @@ -70,7 +70,7 @@ private void runTestResizeCopySettingsDeprecated( assertThat(e, hasToString(containsString("parameter [copy_settings] can not be explicitly set to [false]"))); } else { handler.prepareRequest(request, mock(NodeClient.class)); - if ("true".equals(copySettings)) { + if ("".equals(copySettings) || "true".equals(copySettings)) { assertWarnings("parameter [copy_settings] is deprecated and will be removed in 8.0.0"); } }