Skip to content

Commit

Permalink
increase delay to make sure license refetched (elastic#53882)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
mshustov and elasticmachine committed Jan 6, 2020
1 parent f503aa2 commit aef599e
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 aef599e

Please sign in to comment.