Skip to content

Commit

Permalink
quarkus:test output does not always start
Browse files Browse the repository at this point in the history
Fixes #17717
  • Loading branch information
stuartwdouglas committed Jun 6, 2021
1 parent c8cd44a commit 9a94584
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public void accept(Connection connection) {
QuarkusConsole.INSTANCE = new BasicConsole(config.disableColor, !config.disableConsoleInput, System.out);
}
}
QuarkusConsole.start();
RedirectPrintStream ps = new RedirectPrintStream();
System.setOut(ps);
System.setErr(ps);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ LogCleanupFilterBuildItem handle() {
}

@BuildStep(onlyIf = IsDevelopment.class)
@Produce(TestSetupBuildItem.class)
void setupConsole(TestConfig config, BuildProducer<TestListenerBuildItem> testListenerBuildItemBuildProducer) {
if (!TestSupport.instance().isPresent() || config.continuousTesting == TestConfig.Mode.DISABLED
|| config.flatClassPath) {
Expand Down

0 comments on commit 9a94584

Please sign in to comment.