diff --git a/x-pack/plugins/monitoring/server/plugin.test.ts b/x-pack/plugins/monitoring/server/plugin.test.ts index 13da0a3c9242e2..85344dca1d6608 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 b9c6c710c29213..923791077dae8b 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}`;