Skip to content

Commit c44e653

Browse files
authored
Merge pull request apache#207 from tg-freigmbh/master
Buffer for more Speed
2 parents 60e3661 + 0aa66de commit c44e653

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/LauncherSupport.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
import org.junit.platform.launcher.listeners.SummaryGeneratingListener;
4646
import org.junit.platform.launcher.listeners.TestExecutionSummary;
4747

48+
import java.io.BufferedOutputStream;
4849
import java.io.File;
4950
import java.io.IOException;
5051
import java.io.InputStream;
@@ -257,7 +258,7 @@ private void setupResultFormatter(final TestRequest testRequest, final ListenerD
257258
// set the destination output stream for writing out the formatted result
258259
final java.nio.file.Path resultOutputFile = getListenerOutputFile(testRequest, formatterDefinition);
259260
try {
260-
final OutputStream resultOutputStream = Files.newOutputStream(resultOutputFile);
261+
final OutputStream resultOutputStream = new BufferedOutputStream(Files.newOutputStream(resultOutputFile));
261262
// enroll the output stream to be closed when the execution of the TestRequest completes
262263
testRequest.closeUponCompletion(resultOutputStream);
263264
resultFormatter.setDestination(new KeepAliveOutputStream(resultOutputStream));

0 commit comments

Comments
 (0)