diff options
author | Eric Wong <e@80x24.org> | 2019-01-04 09:14:48 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-01-04 09:16:04 +0000 |
commit | bfcbbb30ef2001d18219079a7379eb9c99d16cdc (patch) | |
tree | f458b936b50dc91b8b2eb6594c8688508475a87e /t/cgi.t | |
parent | 2acb572e34cabd06292bde615bdab54b3f54edd9 (diff) | |
download | public-inbox-bfcbbb30ef2001d18219079a7379eb9c99d16cdc.tar.gz |
No need to test this via CGI .cgi is a wrapper around PSGI and PSGI tests are way faster.
Diffstat (limited to 't/cgi.t')
-rw-r--r-- | t/cgi.t | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -90,25 +90,6 @@ EOF like($res->{head}, qr/Status:\s*404/i, "index returns 404"); } -# dumb HTTP support -{ - local $ENV{HOME} = $home; - my $path = "/test/info/refs"; - my $res = cgi_run($path); - like($res->{head}, qr/Status:\s*200/i, "info/refs readable"); - my $orig = $res->{body}; - - local $ENV{HTTP_RANGE} = 'bytes=5-10'; - $res = cgi_run($path); - like($res->{head}, qr/Status:\s*206/i, "info/refs partial OK"); - is($res->{body}, substr($orig, 5, 6), 'partial body OK'); - - local $ENV{HTTP_RANGE} = 'bytes=5-'; - $res = cgi_run($path); - like($res->{head}, qr/Status:\s*206/i, "info/refs partial past end OK"); - is($res->{body}, substr($orig, 5), 'partial body OK past end'); -} - # message-id pages { local $ENV{HOME} = $home; |