1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-24 17:40:43 +01:00

Merge branch '3.3.x'

This commit is contained in:
Marc Alexander 2019-10-20 20:39:17 +02:00
commit 14b67cd857
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -153,7 +153,26 @@ class phpbb_ui_test_case extends phpbb_test_case
public function visit($path)
{
$this->getDriver()->get(self::$root_url . $path);
// Retry three times on curl issues, e.g. timeout
$attempts = 0;
$retries = 3;
while (true)
{
$attempts++;
try
{
$this->getDriver()->get(self::$root_url . $path);
break;
}
catch (Facebook\WebDriver\Exception\WebDriverCurlException $exception)
{
if ($attempts >= $retries)
{
throw $exception;
}
}
}
}
static protected function recreate_database($config)