about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/eml.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/eml.t b/t/eml.t
index d5e8cbcb..c91deb3a 100644
--- 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++) {