提交 7876a296 编写于 作者: J Jesse Glick

98136669 caused test archiving failures when this test is itself run.

上级 1d3521c7
...@@ -55,6 +55,7 @@ public class TestMojoTest { ...@@ -55,6 +55,7 @@ public class TestMojoTest {
assertTrue(reportsDir.mkdirs()); assertTrue(reportsDir.mkdirs());
File testResults = new File(reportsDir, testResultsName); File testResults = new File(reportsDir, testResultsName);
try {
FileWriter fw = new FileWriter(testResults, false); FileWriter fw = new FileWriter(testResults, false);
fw.write("this is a fake surefire reports output file"); fw.write("this is a fake surefire reports output file");
fw.close(); fw.close();
...@@ -76,5 +77,8 @@ public class TestMojoTest { ...@@ -76,5 +77,8 @@ public class TestMojoTest {
found = true; found = true;
} }
assertTrue("report file not found", found); assertTrue("report file not found", found);
} finally {
testResults.delete();
}
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册