You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix randomization in testPerformActionAttrsRequestFails (#43304)
The randomization in this test would occasionally generate duplicate
node attribute keys, causing spurious test failures. This commit adjusts
the randomization to not generate duplicate keys and cleans up the data
structure used to hold the generated keys.
Copy file name to clipboardExpand all lines: x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/indexlifecycle/SetSingleNodeAllocateStepTests.java
+11-8
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,9 @@
39
39
importorg.mockito.stubbing.Answer;
40
40
41
41
importjava.io.IOException;
42
+
importjava.util.HashMap;
42
43
importjava.util.HashSet;
44
+
importjava.util.Map;
43
45
importjava.util.Set;
44
46
importjava.util.stream.Collectors;
45
47
@@ -202,17 +204,18 @@ public void testPerformActionAttrsNoNodesValid() {
0 commit comments