From 02c919f0b0195da982accaa1c24114540b9c66e3 Mon Sep 17 00:00:00 2001 From: Tanguy Leroux Date: Tue, 28 Feb 2017 09:38:59 +0100 Subject: [PATCH] [Tests] Fix RestClientTests --- .../test/java/org/elasticsearch/client/RestClientTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/rest/src/test/java/org/elasticsearch/client/RestClientTests.java b/client/rest/src/test/java/org/elasticsearch/client/RestClientTests.java index 1ed08e19ab6..d8c297ed099 100644 --- a/client/rest/src/test/java/org/elasticsearch/client/RestClientTests.java +++ b/client/rest/src/test/java/org/elasticsearch/client/RestClientTests.java @@ -56,12 +56,12 @@ public class RestClientTests extends RestClientTestCase { public void testPerformAsyncWithNullHeaders() throws Exception { RestClient.SyncResponseListener listener = new RestClient.SyncResponseListener(10000); try (RestClient restClient = createRestClient()) { - restClient.performRequestAsync("GET", randomAsciiOfLength(5), listener, null); + restClient.performRequestAsync("GET", randomAsciiOfLength(5), listener, (Header) null); listener.get(); fail("should have failed because of null headers"); } catch (NullPointerException exception) { - assertEquals("request headers must not be null", exception.getMessage()); + assertEquals("request header must not be null", exception.getMessage()); } }