summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorTom N Harris <tnharris@whoopdedo.org>2012-07-01 15:25:33 -0400
committerTom N Harris <tnharris@whoopdedo.org>2012-07-01 15:25:33 -0400
commit08118f511f456cc119c08a966a83704af88e6182 (patch)
tree8091987b46cb0d53f80f2d03ad52959cdca38951 /_test
parenta6ba0720629e19619b1d72aa7aadea28a533f856 (diff)
downloadrpg-08118f511f456cc119c08a966a83704af88e6182.tar.gz
rpg-08118f511f456cc119c08a966a83704af88e6182.tar.bz2
Adjust unit test to reflect desired behavior of max_bodysize
Diffstat (limited to '_test')
-rw-r--r--_test/tests/inc/httpclient_http.test.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/_test/tests/inc/httpclient_http.test.php b/_test/tests/inc/httpclient_http.test.php
index c3ee182dc..9959a1f06 100644
--- a/_test/tests/inc/httpclient_http.test.php
+++ b/_test/tests/inc/httpclient_http.test.php
@@ -127,9 +127,8 @@ class httpclient_http_test extends DokuWikiTest {
$http->max_bodysize_abort = false;
$data = $http->get($this->server.'/stream/30');
$this->assertFalse($data === false, 'HTTP response');
- /* the current implementation will read in max_bodysize blocks,
- and aborts if the response is larger, thus a limit of 2*max_bodysize */
- $this->assertLessThanOrEqual(500,strlen($data));
+ /* should read no more than max_bodysize+1 */
+ $this->assertLessThanOrEqual(251,strlen($data));
}
/**