[TEST] produce valid symlinks in tests

This commit is contained in:
Simon Willnauer 2014-12-04 17:02:38 +01:00
parent 7ac713aedc
commit b8687163c4
1 changed files with 1 additions and 1 deletions

View File

@ -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