Skip to content

Commit 52f9b46

Browse files
committed
Use client() instead of clusterAdmin() in test
1 parent 1c6eda4 commit 52f9b46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/core/src/test/java/org/elasticsearch/license/StartBasicLicenseTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ public void testUnacknowledgedStartBasicLicense() throws Exception {
8585
}
8686

8787
private static GetBasicStatusResponse getBasicStatus() {
88-
return safeGet(clusterAdmin().execute(TransportGetBasicStatusAction.TYPE, new GetBasicStatusRequest(TEST_REQUEST_TIMEOUT)));
88+
return safeGet(client().execute(TransportGetBasicStatusAction.TYPE, new GetBasicStatusRequest(TEST_REQUEST_TIMEOUT)));
8989
}
9090

9191
private static PostStartBasicResponse startBasic(boolean acknowledged) {
9292
return safeGet(
93-
clusterAdmin().execute(
93+
client().execute(
9494
PostStartBasicAction.INSTANCE,
9595
new PostStartBasicRequest(TEST_REQUEST_TIMEOUT, TEST_REQUEST_TIMEOUT).acknowledge(acknowledged)
9696
)

0 commit comments

Comments
 (0)