Improve child performances (#1314)

This commit is contained in:
Tomas Della Vedova
2020-09-23 11:31:09 +02:00
committed by GitHub
parent 19f570f067
commit a064f0f357
400 changed files with 15119 additions and 38598 deletions

View File

@ -60,7 +60,7 @@ function build (opts = {}) {
await client.indices.deleteAlias({
index: '_all',
name: '_all'
}, { ignore: 404 })
}, { ignore: [404] })
} catch (err) {
assert.ifError(err, 'should not error: indices.deleteAlias')
}
@ -69,7 +69,7 @@ function build (opts = {}) {
await client.indices.delete({
index: '_all',
expand_wildcards: 'open,closed,hidden'
}, { ignore: 404 })
}, { ignore: [404] })
} catch (err) {
assert.ifError(err, 'should not error: indices.delete')
}
@ -392,6 +392,7 @@ function build (opts = {}) {
}
const options = { ignore: cmd.params.ignore, headers: action.headers }
if (!Array.isArray(options.ignore)) options.ignore = [options.ignore]
if (cmd.params.ignore) delete cmd.params.ignore
const [err, result] = await to(api(cmd.params, options))