X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F04multipart.t;h=7f2c0f594034f1a5736dceaaae1e3770e24169c3;hb=0a66fd2366e29e961fe3ee608a83f86068517c92;hp=75a7f892a98805ed3795dc1b00e9303ce15345d5;hpb=807be76d0cc3edc476c5242d8895044611081f48;p=catagits%2FHTTP-Body.git diff --git a/t/04multipart.t b/t/04multipart.t index 75a7f89..7f2c0f5 100644 --- a/t/04multipart.t +++ b/t/04multipart.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 55; +use Test::More tests => 60; use Cwd; use HTTP::Body; @@ -13,7 +13,7 @@ use YAML; my $path = catdir( getcwd(), 't', 'data', 'multipart' ); -for ( my $i = 1; $i <= 11; $i++ ) { +for ( my $i = 1; $i <= 12; $i++ ) { my $test = sprintf( "%.3d", $i ); my $headers = YAML::LoadFile( catfile( $path, "$test-headers.yml" ) ); @@ -40,5 +40,5 @@ for ( my $i = 1; $i <= 11; $i++ ) { is_deeply( $body->param, $results->{param}, "$test MultiPart param" ); is_deeply( $body->upload, $results->{upload}, "$test MultiPart upload" ); cmp_ok( $body->state, 'eq', 'done', "$test MultiPart state" ); - cmp_ok( $body->length, '==', $headers->{'Content-Length'}, "$test MultiPart length" ); + cmp_ok( $body->length, '==', $body->content_length, "$test MultiPart length" ); }