]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/eml.t
eml: rename limits to match postfix names
[public-inbox.git] / t / eml.t
diff --git a/t/eml.t b/t/eml.t
index d5e8cbcbbbacfde4b563e2b85bfb9fda26e6e11e..c91deb3ab29a8a1a78f3a186af3188dca7b68925 100644 (file)
--- a/t/eml.t
+++ b/t/eml.t
@@ -282,7 +282,7 @@ if ('maxparts is a feature unique to us') {
        my @orig;
        $eml->each_part(sub { push @orig, $_[0]->[0] });
 
-       local $PublicInbox::Eml::MAXPARTS = scalar(@orig);
+       local $PublicInbox::Eml::mime_parts_limit = scalar(@orig);
        my $i = 0;
        $eml->each_part(sub {
                my $cur = $_[0]->[0];
@@ -290,7 +290,7 @@ if ('maxparts is a feature unique to us') {
                is($cur->body_raw, $prv->body_raw, "part #$i matches");
        });
        is($i, scalar(@orig), 'maxparts honored');
-       $PublicInbox::Eml::MAXPARTS--;
+       $PublicInbox::Eml::mime_parts_limit--;
        my @ltd;
        $eml->each_part(sub { push @ltd, $_[0]->[0] });
        for ($i = 0; $i <= $#ltd; $i++) {