1
0
Эх сурвалжийг харах

Fix a typo in LocalClusterSpec (#96576)

Fix a typo in LocalClusterSpec to use actual parameter instead of hard coded value.
Ievgen Degtiarenko 2 жил өмнө
parent
commit
af15c058bf

+ 1 - 1
test/test-clusters/src/main/java/org/elasticsearch/test/cluster/local/LocalClusterSpec.java

@@ -195,7 +195,7 @@ public class LocalClusterSpec implements ClusterSpec {
         }
 
         public boolean hasRole(String role) {
-            return getSetting("node.roles", "[]").contains("search");
+            return getSetting("node.roles", "[]").contains(role);
         }
 
         /**