Skip to content

Commit

Permalink
Remove license refresh from setup (#79518) (#79600)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline committed Oct 6, 2020
1 parent ceb8cdd commit f09a57e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions x-pack/plugins/monitoring/server/plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => ({})),
})),
}));

Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/monitoring/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit f09a57e

Please sign in to comment.