Skip to content

Commit 6d95873

Browse files
committed
Delay reading the err stream until the test is actually running to avoid losing output due to goofy race condition
1 parent 8d66e89 commit 6d95873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devtools/cli/src/main/java/io/quarkus/cli/build/ExecuteUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static int executeProcess(OutputOptionMixin output, String[] args, File p
5151
if (output.isCliTest()) {
5252
// We have to capture IO differently in tests..
5353
pb.output().consumeWith(br -> br.lines().forEach(output.out()::println))
54-
.error().transferTo(output.err())
54+
.error().consumeWith(br -> br.lines().forEach(output.err()::println))
5555
.run();
5656
} else {
5757
pb.output().inherited()

0 commit comments

Comments
 (0)