Skip to content

Commit

Permalink
Update failure detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Jan 31, 2024
1 parent 0e8ea34 commit 482dd0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/VuFind/src/VuFindTest/Integration/MinkTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ public function tearDown(): void
// and we have run out of retries ($this->retriesLeft is set by the
// AutoRetryTrait):
if (
$this->hasFailed()
$this->status()->isFailure()
&& ($imageDir = getenv('VUFIND_SCREENSHOT_DIR'))
) {
$filename = $this->getName() . '-' . $this->retriesLeft . '-'
Expand Down Expand Up @@ -1061,7 +1061,7 @@ public function tearDown(): void
}

$htmlValidationException = null;
if (!$this->hasFailed()) {
if (!$this->status()->isFailure()) {
try {
$this->validateHtml();
} catch (\Exception $e) {
Expand Down

0 comments on commit 482dd0e

Please sign in to comment.