mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
14b67cd857
1 changed files with 20 additions and 1 deletions
|
@ -153,7 +153,26 @@ class phpbb_ui_test_case extends phpbb_test_case
|
||||||
|
|
||||||
public function visit($path)
|
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)
|
static protected function recreate_database($config)
|
||||||
|
|
Loading…
Add table
Reference in a new issue