From 4aff3b317a9ac0a6bf295c70a5a82c15ccac3768 Mon Sep 17 00:00:00 2001 From: David Pilato Date: Fri, 23 Oct 2015 16:55:35 +0200 Subject: [PATCH] Standalone runner expects path.home to be set Don't use forbidden API. Actually we don't need to create any `tmp` dir. Related to #167. --- .../attachment/test/standalone/StandaloneRunner.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/test/java/org/elasticsearch/index/mapper/attachment/test/standalone/StandaloneRunner.java b/src/test/java/org/elasticsearch/index/mapper/attachment/test/standalone/StandaloneRunner.java index ff6c5728590..b16f98e3b58 100644 --- a/src/test/java/org/elasticsearch/index/mapper/attachment/test/standalone/StandaloneRunner.java +++ b/src/test/java/org/elasticsearch/index/mapper/attachment/test/standalone/StandaloneRunner.java @@ -67,12 +67,7 @@ public class StandaloneRunner extends CliTool { .build(); static { - try { - Path tmp = Files.createTempDirectory("tika"); - System.setProperty("es.path.home", tmp.getFileName().toString()); - } catch (IOException e) { - e.printStackTrace(); - } + System.setProperty("es.path.home", "/tmp"); } static class TikaRunner extends Command {