From 286333d8e81b6ef056ef3bcd484985a4d283814e Mon Sep 17 00:00:00 2001 From: zane-neo Date: Thu, 5 Dec 2024 08:58:29 +0800 Subject: [PATCH] Use random string instead of number sequence Signed-off-by: zane-neo --- .../src/test/java/org/opensearch/ml/tools/ListIndexToolIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/test/java/org/opensearch/ml/tools/ListIndexToolIT.java b/plugin/src/test/java/org/opensearch/ml/tools/ListIndexToolIT.java index edb7992aec..02a9c51f7e 100644 --- a/plugin/src/test/java/org/opensearch/ml/tools/ListIndexToolIT.java +++ b/plugin/src/test/java/org/opensearch/ml/tools/ListIndexToolIT.java @@ -39,7 +39,7 @@ public void setUpCluster() throws Exception { private List createIndices(int count) throws IOException { List indices = new ArrayList<>(); for (int i = 0; i < count; i++) { - String indexName = "test" + i; + String indexName = "test" + randomAlphaOfLength(5); createIndex(indexName, Settings.EMPTY); indices.add(indexName); }