From f09a57ec985b3726f98090d89d4e347116cf1aa0 Mon Sep 17 00:00:00 2001 From: Chris Roberson Date: Mon, 5 Oct 2020 22:36:29 -0400 Subject: [PATCH] Remove license refresh from setup (#79518) (#79600) --- x-pack/plugins/monitoring/server/plugin.test.ts | 4 +--- x-pack/plugins/monitoring/server/plugin.ts | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/x-pack/plugins/monitoring/server/plugin.test.ts b/x-pack/plugins/monitoring/server/plugin.test.ts index 727ada52e6e3d..3fc494d6c3706 100644 --- a/x-pack/plugins/monitoring/server/plugin.test.ts +++ b/x-pack/plugins/monitoring/server/plugin.test.ts @@ -21,9 +21,7 @@ jest.mock('./es_client/instantiate_client', () => ({ jest.mock('./license_service', () => ({ LicenseService: jest.fn().mockImplementation(() => ({ - setup: jest.fn().mockImplementation(() => ({ - refresh: jest.fn(), - })), + setup: jest.fn().mockImplementation(() => ({})), })), })); diff --git a/x-pack/plugins/monitoring/server/plugin.ts b/x-pack/plugins/monitoring/server/plugin.ts index c0a01e13417c7..3a1a3d09153e9 100644 --- a/x-pack/plugins/monitoring/server/plugin.ts +++ b/x-pack/plugins/monitoring/server/plugin.ts @@ -122,7 +122,6 @@ export class Plugin { config, log: this.log, }); - await this.licenseService.refresh(); const serverInfo = core.http.getServerInfo(); let kibanaUrl = `${serverInfo.protocol}://${serverInfo.hostname}:${serverInfo.port}`;