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:
commit
14b67cd857
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user