Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-04-01 00:16:15 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-04-01 00:16:15 +0400
commit12272d22842394145f5c07f12c4fb1955d14a3d1 (patch)
treec41350e8f7f2e4ac2d03a21074ef4b4cbceba8c2 /tests
parent0cbf4cccf798cc4c7dbd3541ed1060d27c62adec (diff)
specified a timeout, maybe this fixes the test?
Diffstat (limited to 'tests')
-rw-r--r--tests/PHPUnit/Integration/ArchiveWebTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/PHPUnit/Integration/ArchiveWebTest.php b/tests/PHPUnit/Integration/ArchiveWebTest.php
index 6598f11df8..6a44fc07b7 100644
--- a/tests/PHPUnit/Integration/ArchiveWebTest.php
+++ b/tests/PHPUnit/Integration/ArchiveWebTest.php
@@ -36,7 +36,9 @@ class Test_Piwik_Integration_ArchiveWebTest extends IntegrationTestCase
$urlTmp = Option::get('piwikUrl');
Option::set('piwikUrl', $host . 'tests/PHPUnit/proxy/index.php');
- $output = file_get_contents($host . 'tests/PHPUnit/proxy/archive.php?token_auth=' . $token . '&forcelogtoscreen=1');
+ $streamContext = stream_context_create(array('http' => array('timeout' => 180)));
+
+ $output = file_get_contents($host . 'tests/PHPUnit/proxy/archive.php?token_auth=' . $token . '&forcelogtoscreen=1', 0, $streamContext);
if (!empty($urlTmp)) {
Option::set('piwikUrl', $urlTmp);