Skip to content

Commit bc6ed91

Browse files
OXDEV-351 Revert retry on assertionFailed exception
Sometimes selenium throws different type of exception and in this case test should be retried.
1 parent abbb0ad commit bc6ed91

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

library/AcceptanceTestCase.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1851,14 +1851,11 @@ protected static function _clearString($sToClear)
18511851
*/
18521852
protected function onNotSuccessfulTest(Exception $exception)
18531853
{
1854-
if ($exception instanceof AssertionFailedError &&
1855-
$this->retryTimesLeft > 0
1856-
) {
1854+
if ($this->retryTimesLeft > 0) {
18571855
$this->retryTimesLeft--;
18581856
$this->stopMinkSession();
18591857
$this->setUpTestsSuite($this->getSuitePath());
18601858
$this->runBare();
1861-
18621859
return;
18631860
}
18641861

0 commit comments

Comments
 (0)