From 15d72af18a3b6a484ff32375bb4515a01947baac Mon Sep 17 00:00:00 2001 From: Chris Roberson Date: Mon, 5 Oct 2020 21:04:49 -0400 Subject: [PATCH] Remove license refresh from setup (#79518) --- 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 13da0a3c9242e..85344dca1d660 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 b9c6c710c2921..923791077dae8 100644 --- a/x-pack/plugins/monitoring/server/plugin.ts +++ b/x-pack/plugins/monitoring/server/plugin.ts @@ -117,7 +117,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}`;