Skip to content

Commit ae3eb71

Browse files
committed
sidestep forbidden api
1 parent 264158f commit ae3eb71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distribution/tools/server-cli/src/test/java/org/elasticsearch/server/cli/ServerProcessTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public void testProcessBuilder() throws Exception {
241241
assertThat(pb.redirectInput(), equalTo(ProcessBuilder.Redirect.PIPE));
242242
assertThat(pb.redirectOutput(), equalTo(ProcessBuilder.Redirect.INHERIT));
243243
assertThat(pb.redirectError(), equalTo(ProcessBuilder.Redirect.PIPE));
244-
assertThat(pb.directory().toString(), equalTo(workingDir.toString())); // leave default, which is working directory
244+
assertThat(String.valueOf(pb.directory()), equalTo(workingDir.toString())); // leave default, which is working directory
245245
};
246246
mainCallback = (args, stdin, stderr, exitCode) -> {
247247
try (PrintStream err = new PrintStream(stderr, true, StandardCharsets.UTF_8)) {

0 commit comments

Comments
 (0)