فهرست منبع

fix failing IsolatedPluginTests (change numNodes to 0)

(cherry picked from commit f26a369a78ade032df44fcf331f378644f74b9ea)
Costin Leau 11 سال پیش
والد
کامیت
95fa42b701
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/test/java/org/elasticsearch/plugins/IsolatedPluginTests.java

+ 2 - 2
src/test/java/org/elasticsearch/plugins/IsolatedPluginTests.java

@@ -43,7 +43,7 @@ import static org.hamcrest.CoreMatchers.notNullValue;
 
 // NB: the tests uses System Properties to pass the information from different plugins (loaded in separate CLs) to the test.
 // hence the use of try/finally blocks to clean these up after the test has been executed as otherwise the test framework will trigger a failure
-@ClusterScope(scope = Scope.TEST, numNodes = 1)
+@ClusterScope(scope = Scope.TEST, numNodes = 0)
 public class IsolatedPluginTests extends ElasticsearchIntegrationTest {
 
     private static final Settings SETTINGS;
@@ -113,7 +113,7 @@ public class IsolatedPluginTests extends ElasticsearchIntegrationTest {
     @Test
     public void testIsolatedPluginProperties() throws Exception {
         try {
-            cluster().client();
+            client();
             Properties p = System.getProperties();
             assertThat(p.getProperty("es.test.isolated.plugin.count"), equalTo("2"));
             String prop = p.getProperty("es.test.isolated.plugin.instantiated.hashes");