Skip to content

Commit

Permalink
update interface
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed May 12, 2021
1 parent 15025fc commit 0cd788a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ describe('CoreUsageDataService', () => {
const savedObjectsStartPromise = Promise.resolve(
savedObjectsServiceMock.createStartContract()
);
const changedDeprecatedConfigPath$ = configServiceMock.create().getChangedPath$();
const changedDeprecatedConfigPath$ = configServiceMock.create().getDeprecatedConfigPath$();
service.setup({ http, metrics, savedObjectsStartPromise, changedDeprecatedConfigPath$ });

const savedObjects = await savedObjectsStartPromise;
Expand All @@ -106,7 +106,7 @@ describe('CoreUsageDataService', () => {
const savedObjectsStartPromise = Promise.resolve(
savedObjectsServiceMock.createStartContract()
);
const changedDeprecatedConfigPath$ = configServiceMock.create().getChangedPath$();
const changedDeprecatedConfigPath$ = configServiceMock.create().getDeprecatedConfigPath$();
const coreUsageData = service.setup({
http,
metrics,
Expand All @@ -133,7 +133,7 @@ describe('CoreUsageDataService', () => {
const savedObjectsStartPromise = Promise.resolve(
savedObjectsServiceMock.createStartContract()
);
const changedDeprecatedConfigPath$ = configServiceMock.create().getChangedPath$();
const changedDeprecatedConfigPath$ = configServiceMock.create().getDeprecatedConfigPath$();
const coreUsageData = service.setup({
http,
metrics,
Expand Down Expand Up @@ -804,7 +804,7 @@ describe('CoreUsageDataService', () => {
savedObjectsServiceMock.createStartContract()
);

const changedDeprecatedConfigPath$ = configServiceMock.create().getChangedPath$();
const changedDeprecatedConfigPath$ = configServiceMock.create().getDeprecatedConfigPath$();
service.setup({ http, metrics, savedObjectsStartPromise, changedDeprecatedConfigPath$ });

// Use the stopTimer$ to delay calling stop() until the third frame
Expand Down
2 changes: 1 addition & 1 deletion src/core/server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export class Server {
http: httpSetup,
metrics: metricsSetup,
savedObjectsStartPromise: this.savedObjectsStartPromise,
changedDeprecatedConfigPath$: this.configService.getChangedPath$(),
changedDeprecatedConfigPath$: this.configService.getDeprecatedConfigPath$(),
});

const savedObjectsSetup = await this.savedObjects.setup({
Expand Down

0 comments on commit 0cd788a

Please sign in to comment.