Skip to content

Commit 02c919f

Browse files
committed
[Tests] Fix RestClientTests
1 parent 9da8531 commit 02c919f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/rest/src/test/java/org/elasticsearch/client/RestClientTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ public void testPerformAsyncWithNullParams() throws Exception {
5656
public void testPerformAsyncWithNullHeaders() throws Exception {
5757
RestClient.SyncResponseListener listener = new RestClient.SyncResponseListener(10000);
5858
try (RestClient restClient = createRestClient()) {
59-
restClient.performRequestAsync("GET", randomAsciiOfLength(5), listener, null);
59+
restClient.performRequestAsync("GET", randomAsciiOfLength(5), listener, (Header) null);
6060
listener.get();
6161

6262
fail("should have failed because of null headers");
6363
} catch (NullPointerException exception) {
64-
assertEquals("request headers must not be null", exception.getMessage());
64+
assertEquals("request header must not be null", exception.getMessage());
6565
}
6666
}
6767

0 commit comments

Comments
 (0)