diff --git a/src/test/java/org/elasticsearch/cloud/gce/AbstractGceTest.java b/src/test/java/org/elasticsearch/cloud/gce/AbstractGceTest.java index 6388a2c03f9..80070e47a62 100644 --- a/src/test/java/org/elasticsearch/cloud/gce/AbstractGceTest.java +++ b/src/test/java/org/elasticsearch/cloud/gce/AbstractGceTest.java @@ -57,9 +57,10 @@ public abstract class AbstractGceTest extends ElasticsearchIntegrationTest { protected Settings nodeSettings(int nodeOrdinal) { ImmutableSettings.Builder settings = ImmutableSettings.builder() .put(super.nodeSettings(nodeOrdinal)) + .put("path.home", createTempDir()) .put("plugins." + PluginsService.LOAD_PLUGIN_FROM_CLASSPATH, true); - Environment environment = new Environment(); + Environment environment = new Environment(settings.build()); // if explicit, just load it and don't load from env try {