Skip to content

Commit 1982c08

Browse files
committed
Adjust the fetchSize of reporters to 1 if writing to screen
1 parent 9a76da1 commit 1982c08

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/java/org/utplsql/cli/ReporterManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public void startReporterGatherers(ExecutorService executorService, final Connec
9292
try (Connection conn = ci.getConnection()) {
9393
if (ro.outputToScreen()) {
9494
printStreams.add(System.out);
95+
ro.getReporterObj().getOutputBuffer().setFetchSize(1);
9596
}
9697

9798
if (ro.outputToFile()) {

src/test/java/org/utplsql/cli/RunCommandIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public class RunCommandIT {
1414
public void run_Default() throws Exception {
1515
RunCommand runCmd = RunCommandTestHelper.createRunCommand(RunCommandTestHelper.getConnectionString(),
1616
"-f=ut_documentation_reporter",
17+
"-s",
1718
"-c",
1819
"--failure-exit-code=2");
1920

0 commit comments

Comments
 (0)