Skip to content

Commit

Permalink
fix flakiness in licensing plugin public functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Apr 20, 2021
1 parent eec188c commit 2e732f2
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 @@ -34,7 +34,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(500);
await testUtils.delay(1000);

const licensing: LicensingPluginSetup = setup.plugins.licensing;
licensing.license$.subscribe((license) => cb(license.type));
Expand All @@ -50,7 +50,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(500);
await testUtils.delay(1000);

const licensing: LicensingPluginSetup = setup.plugins.licensing;
licensing.license$.subscribe((license) => cb(license.type));
Expand All @@ -66,7 +66,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(500);
await testUtils.delay(1000);

const licensing: LicensingPluginSetup = setup.plugins.licensing;
licensing.license$.subscribe((license) => cb(license.type));
Expand All @@ -82,7 +82,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(500);
await testUtils.delay(1000);

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

0 comments on commit 2e732f2

Please sign in to comment.