Skip to content

Commit

Permalink
increase delay to make sure license refetched (#53882)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
mshustov and elasticmachine authored Jan 6, 2020
1 parent 24542c3 commit d64c4cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x-pack/test/licensing_plugin/public/updates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function(ftrContext: FtrProviderContext) {
// this call enforces signature check to detect license update
// and causes license re-fetch
await setup.core.http.get('/');
await testUtils.delay(100);
await testUtils.delay(500);

const licensing: LicensingPluginSetup = setup.plugins.licensing;
licensing.license$.subscribe(license => cb(license.type));
Expand All @@ -48,7 +48,7 @@ export default function(ftrContext: FtrProviderContext) {
// this call enforces signature check to detect license update
// and causes license re-fetch
await setup.core.http.get('/');
await testUtils.delay(100);
await testUtils.delay(500);

const licensing: LicensingPluginSetup = setup.plugins.licensing;
licensing.license$.subscribe(license => cb(license.type));
Expand All @@ -64,7 +64,7 @@ export default function(ftrContext: FtrProviderContext) {
// this call enforces signature check to detect license update
// and causes license re-fetch
await setup.core.http.get('/');
await testUtils.delay(100);
await testUtils.delay(500);

const licensing: LicensingPluginSetup = setup.plugins.licensing;
licensing.license$.subscribe(license => cb(license.type));
Expand All @@ -80,7 +80,7 @@ export default function(ftrContext: FtrProviderContext) {
// this call enforces signature check to detect license update
// and causes license re-fetch
await setup.core.http.get('/');
await testUtils.delay(100);
await testUtils.delay(500);

const licensing: LicensingPluginSetup = setup.plugins.licensing;
licensing.license$.subscribe(license => cb(license.type));
Expand Down

0 comments on commit d64c4cb

Please sign in to comment.