[TEST] ensure test license registration is always acknowledged
Original commit: elastic/x-pack-elasticsearch@3a928ba54a
This commit is contained in:
parent
a7c884be61
commit
b674e016cb
|
@ -155,7 +155,7 @@ public class TestUtils {
|
||||||
|
|
||||||
public static void registerAndAckSignedLicenses(final LicensesService licensesService, License license,
|
public static void registerAndAckSignedLicenses(final LicensesService licensesService, License license,
|
||||||
final LicensesStatus expectedStatus) {
|
final LicensesStatus expectedStatus) {
|
||||||
PutLicenseRequest putLicenseRequest = new PutLicenseRequest().license(license);
|
PutLicenseRequest putLicenseRequest = new PutLicenseRequest().license(license).acknowledge(true);
|
||||||
final CountDownLatch latch = new CountDownLatch(1);
|
final CountDownLatch latch = new CountDownLatch(1);
|
||||||
final AtomicReference<LicensesStatus> status = new AtomicReference<>();
|
final AtomicReference<LicensesStatus> status = new AtomicReference<>();
|
||||||
licensesService.registerLicense(putLicenseRequest, new ActionListener<PutLicenseResponse>() {
|
licensesService.registerLicense(putLicenseRequest, new ActionListener<PutLicenseResponse>() {
|
||||||
|
|
Loading…
Reference in New Issue