Skip to content

Commit

Permalink
Fix reporting of risky tests
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
  • Loading branch information
DeepDiver1975 authored and blizzz committed Dec 22, 2016
1 parent 14256d6 commit b62b82c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/lib/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ protected function tearDown() {
// fail hard if xml errors have not been cleaned up
$errors = libxml_get_errors();
libxml_clear_errors();
$this->assertEquals([], $errors);
if (!empty($errors)) {
self::assertEquals([], $errors, "There have been xml parsing errors");
}

\OC\Files\Cache\Storage::getGlobalCache()->clearCache();

Expand Down

0 comments on commit b62b82c

Please sign in to comment.