Skip to content

Commit

Permalink
Remove license refresh from setup
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline committed Oct 5, 2020
1 parent 90b6442 commit 41aa3fa
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 41aa3fa

Please sign in to comment.