Skip to content

Commit

Permalink
increase delay to make sure license refetched
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Jan 2, 2020
1 parent 650fcda commit 8413c1b
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 8413c1b

Please sign in to comment.