Loading _tests/tests/unit_tests/http_timeouts.php +4 −4 Original line number Diff line number Diff line Loading @@ -37,16 +37,16 @@ class http_timeouts_test_set extends cms_test_case $timeout = 3.0; // Test timeout not being hit for large file $url = 'http://www.html5videoplayer.net/videos/toystory.mp4'; $url = 'http://ocportal.com/old/uploads/website_specific/ocportal.com/video_tutorials/designer_themes__theme_wizard.mp4'; $r1 = $this->_testCurl($url, $timeout); $this->assertTrue($r1[0]); $this->assertTrue($r1[1] == 33505479, 'Wrong download size @ ' . strval($r1[1])); $this->assertTrue($r1[1] == 27078913, 'Wrong download size @ ' . strval($r1[1])); $r2 = $this->_testURLWrappers($url, $timeout); $this->assertTrue($r2[0]); $this->assertTrue($r2[1] == 33505479, 'Wrong download size @ ' . strval($r2[1])); $this->assertTrue($r2[1] == 27078913, 'Wrong download size @ ' . strval($r2[1])); $r3 = $this->_testFSockOpen($url, $timeout); $this->assertTrue($r3[0]); $this->assertTrue($r3[1] >= 33505479, 'Wrong download size @ ' . strval($r3[1])); $this->assertTrue($r3[1] >= 27078913, 'Wrong download size @ ' . strval($r3[1])); // Test timeout being hit for something that really is timing out $url = get_base_url() . '/_tests/sleep.php?timeout=' . float_to_raw_string($timeout + 2); Loading Loading
_tests/tests/unit_tests/http_timeouts.php +4 −4 Original line number Diff line number Diff line Loading @@ -37,16 +37,16 @@ class http_timeouts_test_set extends cms_test_case $timeout = 3.0; // Test timeout not being hit for large file $url = 'http://www.html5videoplayer.net/videos/toystory.mp4'; $url = 'http://ocportal.com/old/uploads/website_specific/ocportal.com/video_tutorials/designer_themes__theme_wizard.mp4'; $r1 = $this->_testCurl($url, $timeout); $this->assertTrue($r1[0]); $this->assertTrue($r1[1] == 33505479, 'Wrong download size @ ' . strval($r1[1])); $this->assertTrue($r1[1] == 27078913, 'Wrong download size @ ' . strval($r1[1])); $r2 = $this->_testURLWrappers($url, $timeout); $this->assertTrue($r2[0]); $this->assertTrue($r2[1] == 33505479, 'Wrong download size @ ' . strval($r2[1])); $this->assertTrue($r2[1] == 27078913, 'Wrong download size @ ' . strval($r2[1])); $r3 = $this->_testFSockOpen($url, $timeout); $this->assertTrue($r3[0]); $this->assertTrue($r3[1] >= 33505479, 'Wrong download size @ ' . strval($r3[1])); $this->assertTrue($r3[1] >= 27078913, 'Wrong download size @ ' . strval($r3[1])); // Test timeout being hit for something that really is timing out $url = get_base_url() . '/_tests/sleep.php?timeout=' . float_to_raw_string($timeout + 2); Loading