diff options
author | Tom N Harris <tnharris@whoopdedo.org> | 2012-07-01 15:25:33 -0400 |
---|---|---|
committer | Tom N Harris <tnharris@whoopdedo.org> | 2012-07-01 15:25:33 -0400 |
commit | 08118f511f456cc119c08a966a83704af88e6182 (patch) | |
tree | 8091987b46cb0d53f80f2d03ad52959cdca38951 | |
parent | a6ba0720629e19619b1d72aa7aadea28a533f856 (diff) | |
download | rpg-08118f511f456cc119c08a966a83704af88e6182.tar.gz rpg-08118f511f456cc119c08a966a83704af88e6182.tar.bz2 |
Adjust unit test to reflect desired behavior of max_bodysize
-rw-r--r-- | _test/tests/inc/httpclient_http.test.php | 5 |
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)); } /** |