[TEST] produce valid symlinks in tests
This commit is contained in:
parent
7ac713aedc
commit
b8687163c4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue