diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-04-01 00:16:15 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-04-01 00:16:15 +0400 |
commit | 12272d22842394145f5c07f12c4fb1955d14a3d1 (patch) | |
tree | c41350e8f7f2e4ac2d03a21074ef4b4cbceba8c2 /tests | |
parent | 0cbf4cccf798cc4c7dbd3541ed1060d27c62adec (diff) |
specified a timeout, maybe this fixes the test?
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PHPUnit/Integration/ArchiveWebTest.php | 4 |
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); |