Skip to content

Commit

Permalink
Fix test data
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdover committed Oct 2, 2019
1 parent e7e329c commit c1ca31a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,9 @@ export default function () {
}
},
newPlatform: {
setup: {
core: {
elasticsearch: {
legacy: { config$: of({ shardTimeout: moment.duration(30000) }) }
}
__internals: {
elasticsearch: {
legacy: { config$: of({ shardTimeout: moment.duration(30000) }) }
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ describe('getEsShardTimeout', () => {
const req = {
server: {
newPlatform: {
setup: {
core: {
elasticsearch: { legacy: { config$: of({ shardTimeout: moment.duration(12345) }) } },
},
__internals: {
elasticsearch: { legacy: { config$: of({ shardTimeout: moment.duration(12345) }) } },
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/optimize/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default async (kbnServer, server, config) => {
const optimizer = new FsOptimizer({
logWithMetadata: (tags, message, metadata) => server.logWithMetadata(tags, message, metadata),
uiBundles,
discoveredPlugins: newPlatform.setup.core.plugins.uiPlugins.internal,
discoveredPlugins: newPlatform.__internals.uiPlugins.internal,
profile: config.get('optimize.profile'),
sourceMaps: config.get('optimize.sourceMaps'),
workers: config.get('optimize.workers'),
Expand Down

0 comments on commit c1ca31a

Please sign in to comment.