Skip to content

Commit

Permalink
fixed tests in check_response_body.t due to recent changes in the Tes…
Browse files Browse the repository at this point in the history
…t::Nginx::Socket internal API.
  • Loading branch information
agentzh committed Jun 25, 2012
1 parent 015f032 commit 0415e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/check_response_body.t
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ my $i = 0; # Use $i to make copy/paste of tests easier.
# unit test. Fix is actually in get_indexed_value.
my $html = "<html><head><title>Google</title></head><body>Search me...</body></html>";
my $raw_res="HTTP/1.0 200 OK\r\nDate: Fri, 31 Dec 1999 23:59:59 GMT\r\nContent-Type: text/html\r\nContent-Length: ".length($html)."\r\n\r\n".$html;
my ( $res, $raw_headers ) = Test::Nginx::Socket::parse_response("name", $raw_res);
my ( $res, $raw_headers, $left ) = Test::Nginx::Socket::parse_response("name", $raw_res, 0);
Test::Nginx::Socket::check_response_body($block_list[$i], $res, undef, 0, 0);

__DATA__
Expand Down

0 comments on commit 0415e2d

Please sign in to comment.