We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c9e6b1 commit 9debc94Copy full SHA for 9debc94
test/integration/test-runner.js
@@ -824,12 +824,15 @@ function isNDJson (api) {
824
* Hack around the fact that serverless doesn't allow deleting indices using wildcards
825
*/
826
async function deleteIndices(client) {
827
- const indices = await client.cat.indices()
828
- if (indices.length > 0) {
829
- const indexNames = indices.map(index => index.name)
+ const indicesRaw = await client.cat.indices()
+ const indexNames = indicesRaw
+ .trim()
830
+ .split('\n')
831
+ .map(row => row.split(' ')[2])
832
+ .filter(name => !name.startsWith('.'))
833
+ if (indexNames.length > 0) {
834
await client.indices.delete({
835
index: indexNames.join(','),
- expand_wildcards: 'open,closed,hidden',
836
}, { ignore: [404] })
837
}
838
0 commit comments