Skip to content

Commit

Permalink
[GR-46615] ProcessBuilderTest did not finish in time.
Browse files Browse the repository at this point in the history
PullRequest: graal/19085
  • Loading branch information
tzezula committed Oct 23, 2024
2 parents 17d022f + 11cda49 commit 59c335a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ protected Object execute(RootNode node, Env env, Object[] contextArguments, Obje
ByteArrayOutputStream stderr = new ByteArrayOutputStream();
TruffleProcessBuilder builder = env.newProcessBuilder(toStringArray(frameArguments));
Process p = builder.redirectOutput(builder.createRedirectToStream(stdout)).redirectError(builder.createRedirectToStream(stderr)).start();
if (!p.waitFor(30, TimeUnit.SECONDS)) {
if (!p.waitFor(60, TimeUnit.SECONDS)) {
p.destroy();
Assert.fail("Process did not finish in expected time.");
}
Expand Down

0 comments on commit 59c335a

Please sign in to comment.