Skip to content

Commit

Permalink
Modified FileSystemResultsWriter.java
Browse files Browse the repository at this point in the history
Change OutputStream object to BufferedOutputStream in order to solve allure-framework/allure-java#197 .
Tested and verified.
  • Loading branch information
AutomatedOwl authored Jun 4, 2018
1 parent e100626 commit 7b6bb94
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import static io.qameta.allure.AllureUtils.generateTestResultContainerName;
import static io.qameta.allure.AllureUtils.generateTestResultName;
import static java.nio.file.StandardOpenOption.CREATE_NEW;

/**
* @author charlie (Dmitry Baev).
Expand All @@ -37,7 +36,7 @@ public void write(TestResult testResult) {
: generateTestResultName(testResult.getUuid());
createDirectories(outputDirectory);
Path file = outputDirectory.resolve(testResultName);
try (OutputStream os = Files.newOutputStream(file, CREATE_NEW)) {
try (OutputStream os = new BufferedOutputStream(new FileOutputStream(file.toString()))) {
mapper.writeValue(os, testResult);
} catch (IOException e) {
throw new AllureResultsWriteException("Could not write Allure test result", e);
Expand Down

0 comments on commit 7b6bb94

Please sign in to comment.