From b2a66b7cbca7d0474113f506e9149efd99eb24c7 Mon Sep 17 00:00:00 2001 From: Harsh Garg Date: Wed, 4 Sep 2024 09:16:27 +0530 Subject: [PATCH] Precommit fix Signed-off-by: Harsh Garg --- .../admin/indices/segments/IndicesSegmentResponseTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/test/java/org/opensearch/action/admin/indices/segments/IndicesSegmentResponseTests.java b/server/src/test/java/org/opensearch/action/admin/indices/segments/IndicesSegmentResponseTests.java index 934bd4d4d7ce8..c01335eb38afc 100644 --- a/server/src/test/java/org/opensearch/action/admin/indices/segments/IndicesSegmentResponseTests.java +++ b/server/src/test/java/org/opensearch/action/admin/indices/segments/IndicesSegmentResponseTests.java @@ -43,7 +43,6 @@ import org.opensearch.test.OpenSearchTestCase; import java.util.ArrayList; -import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Map; @@ -96,7 +95,7 @@ public void testGetIndices() { shardSegmentsList.add(new ShardSegments(shardRouting, segmentList)); } } - Collections.shuffle(shardSegmentsList); + Collections.shuffle(shardSegmentsList, random()); // Prepare the IndicesSegmentResponse object and get the indicesSegments map IndicesSegmentResponse response = new IndicesSegmentResponse(