Skip to content

Commit 7c1f4f5

Browse files
committed
[GR-60207] Process did not finish in expected time in ProcessBuilderTest#testRedirectToStream.
1 parent 2e0e746 commit 7c1f4f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/polyglot/ProcessBuilderTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ protected Object execute(RootNode node, Env env, Object[] contextArguments, Obje
181181
ByteArrayOutputStream stderr = new ByteArrayOutputStream();
182182
TruffleProcessBuilder builder = env.newProcessBuilder(toStringArray(frameArguments));
183183
Process p = builder.redirectOutput(builder.createRedirectToStream(stdout)).redirectError(builder.createRedirectToStream(stderr)).start();
184-
if (!p.waitFor(60, TimeUnit.SECONDS)) {
184+
if (!p.waitFor(2, TimeUnit.MINUTES)) {
185185
p.destroy();
186186
Assert.fail("Process did not finish in expected time.");
187187
}
@@ -640,11 +640,11 @@ public static void main(String[] args) throws IOException {
640640
}
641641

642642
static String expectedStdOut() {
643-
return repeat(STDOUT, 10_000);
643+
return repeat(STDOUT, 100);
644644
}
645645

646646
static String expectedStdErr() {
647-
return repeat(STDERR, 10_000);
647+
return repeat(STDERR, 100);
648648
}
649649

650650
private static String repeat(String pattern, int count) {

0 commit comments

Comments
 (0)