[TEST] ensure test license registration is always acknowledged

Original commit: elastic/x-pack-elasticsearch@3a928ba54a
This commit is contained in:
Areek Zillur 2016-07-13 14:24:55 -04:00
parent a7c884be61
commit b674e016cb
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ public class TestUtils {
public static void registerAndAckSignedLicenses(final LicensesService licensesService, License license,
final LicensesStatus expectedStatus) {
PutLicenseRequest putLicenseRequest = new PutLicenseRequest().license(license);
PutLicenseRequest putLicenseRequest = new PutLicenseRequest().license(license).acknowledge(true);
final CountDownLatch latch = new CountDownLatch(1);
final AtomicReference<LicensesStatus> status = new AtomicReference<>();
licensesService.registerLicense(putLicenseRequest, new ActionListener<PutLicenseResponse>() {