Skip to content
Extraits de code Groupes Projets
Valider b46f9287 rédigé par Julien Moumné's avatar Julien Moumné
Parcourir les fichiers

increase http request timeout in core tests to make them pass on low-speed connections

parent 3d68f199
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -52,7 +52,7 @@ class HttpTest extends PHPUnit_Framework_TestCase
public function testFetchLatestZip()
{
$destinationPath = PIWIK_USER_PATH . '/tmp/latest/latest.zip';
Http::fetchRemoteFile('http://builds.piwik.org/latest.zip', $destinationPath, 3);
Http::fetchRemoteFile('http://builds.piwik.org/latest.zip', $destinationPath, 30);
$this->assertFileExists($destinationPath);
$this->assertGreaterThan(0, filesize($destinationPath));
}
......@@ -67,7 +67,7 @@ class HttpTest extends PHPUnit_Framework_TestCase
$result = Http::sendHttpRequestBy(
$method,
'http://builds.piwik.org/latest.zip',
5,
30,
$userAgent = null,
$destinationPath = null,
$file = null,
......@@ -100,7 +100,7 @@ class HttpTest extends PHPUnit_Framework_TestCase
$result = Http::sendHttpRequestBy(
$method,
'http://builds.piwik.org/latest.zip',
5,
30,
$userAgent = null,
$destinationPath = null,
$file = null,
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter