Skip to content

Commit 04bc5ea

Browse files
committed
createRootWithCorePlugins support for cliArgs which wasn't backported to 7.x
1 parent 5748375 commit 04bc5ea

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
nohup node --max-old-space-size=6000 scripts/kibana.js --migrations.enableV2=true
2+
--dev --no-watch --no-optimizer < /dev/null > running.log 2>&1 &
3+
nohup node --max-old-space-size=6000 scripts/kibana.js --migrations.enableV2=true
4+
--dev --no-watch --no-optimizer < /dev/null > running.log 2>&1 &
5+
nohup node --max-old-space-size=6000 scripts/kibana.js --migrations.enableV2=true
6+
--dev --no-watch --no-optimizer < /dev/null > running.log 2>&1 &
7+
nohup node --max-old-space-size=6000 scripts/kibana.js --migrations.enableV2=true
8+
--dev --no-watch --no-optimizer < /dev/null > running.log 2>&1 &

src/core/test_helpers/kbn_server.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,11 @@ export function createRoot(settings = {}, cliArgs: Partial<CliArgs> = {}) {
123123
* @param {Object} [settings={}] Any config overrides for this instance.
124124
* @returns {Root}
125125
*/
126-
export function createRootWithCorePlugins(settings = {}) {
127-
return createRootWithSettings(defaultsDeep({}, settings, DEFAULT_SETTINGS_WITH_CORE_PLUGINS));
126+
export function createRootWithCorePlugins(settings = {}, cliArgs: Partial<CliArgs> = {}) {
127+
return createRootWithSettings(
128+
defaultsDeep({}, settings, DEFAULT_SETTINGS_WITH_CORE_PLUGINS),
129+
cliArgs
130+
);
128131
}
129132

130133
/**

0 commit comments

Comments
 (0)