From b8687163c4e4ac1e3218346f11b88ca0853b634e Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Thu, 4 Dec 2014 17:02:38 +0100 Subject: [PATCH] [TEST] produce valid symlinks in tests --- src/test/java/org/elasticsearch/common/PidFileTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/elasticsearch/common/PidFileTests.java b/src/test/java/org/elasticsearch/common/PidFileTests.java index 0761a56c6aa..468d802b68b 100644 --- a/src/test/java/org/elasticsearch/common/PidFileTests.java +++ b/src/test/java/org/elasticsearch/common/PidFileTests.java @@ -55,7 +55,7 @@ public class PidFileTests extends ElasticsearchTestCase { if (randomBoolean()) { try { Path link = dir.resolve("link_to_real_path"); - Files.createSymbolicLink(link, parent); + Files.createSymbolicLink(link, parent.getFileName()); parent = link; } catch (UnsupportedOperationException ex) { // fine - no links on this system