From b46f92877a2405272e87b3d253b7fa2dcea33e07 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julien=20Moumn=C3=A9?= <julien@moumne.com>
Date: Sun, 11 Aug 2013 22:44:10 +0200
Subject: [PATCH] increase http request timeout in core tests to make them pass
 on low-speed connections

---
 tests/PHPUnit/Core/HttpTest.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/PHPUnit/Core/HttpTest.php b/tests/PHPUnit/Core/HttpTest.php
index 66da277802..9057962d30 100644
--- a/tests/PHPUnit/Core/HttpTest.php
+++ b/tests/PHPUnit/Core/HttpTest.php
@@ -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,
-- 
GitLab