Skip to content

Commit

Permalink
Remove license refresh from setup (#79518)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline authored Oct 6, 2020
1 parent be11098 commit 230a292
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 @@ -119,7 +119,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 230a292

Please sign in to comment.