Skip to content

Commit f09a57e

Browse files
authored
Remove license refresh from setup (#79518) (#79600)
1 parent ceb8cdd commit f09a57e

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

x-pack/plugins/monitoring/server/plugin.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ jest.mock('./es_client/instantiate_client', () => ({
2121

2222
jest.mock('./license_service', () => ({
2323
LicenseService: jest.fn().mockImplementation(() => ({
24-
setup: jest.fn().mockImplementation(() => ({
25-
refresh: jest.fn(),
26-
})),
24+
setup: jest.fn().mockImplementation(() => ({})),
2725
})),
2826
}));
2927

x-pack/plugins/monitoring/server/plugin.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ export class Plugin {
122122
config,
123123
log: this.log,
124124
});
125-
await this.licenseService.refresh();
126125

127126
const serverInfo = core.http.getServerInfo();
128127
let kibanaUrl = `${serverInfo.protocol}://${serverInfo.hostname}:${serverInfo.port}`;

0 commit comments

Comments
 (0)