Skip to content

Commit

Permalink
Adjust unit test to reflect desired behavior of max_bodysize
Browse files Browse the repository at this point in the history
  • Loading branch information
whoopdedo committed Jul 1, 2012
1 parent a6ba072 commit 08118f5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions _test/tests/inc/httpclient_http.test.php
Expand Up @@ -127,9 +127,8 @@ function test_maxbody(){
$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));
}

/**
Expand Down

0 comments on commit 08118f5

Please sign in to comment.