]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/altid_v2.t
www: drop --subject from "git send-email" instructions
[public-inbox.git] / t / altid_v2.t
index 47ebec85ff8e9b42fd0afbd12fcff3fb5fcfcb27..281a09d51dd0cfe4af5ed0b5590ec97b8a74b68c 100644 (file)
@@ -13,7 +13,7 @@ my $altid = [ "serial:gmane:file=$another" ];
 my $ibx = create_inbox 'v2', version => 2, indexlevel => 'medium',
                        altid => $altid, sub {
        my ($im, $ibx) = @_;
-       my $mm = PublicInbox::Msgmap->new_file("$ibx->{inboxdir}/$another", 1);
+       my $mm = PublicInbox::Msgmap->new_file("$ibx->{inboxdir}/$another", 2);
        $mm->mid_set(1234, 'a@example.com') == 1 or BAIL_OUT 'mid_set once';
        ok(0 == $mm->mid_set(1234, 'a@example.com'), 'mid_set not idempotent');
        ok(0 == $mm->mid_set(1, 'a@example.com'), 'mid_set fails with dup MID');
@@ -26,7 +26,7 @@ Message-ID: <a@example.com>
 hello world gmane:666
 EOF
 };
-my $mm = PublicInbox::Msgmap->new_file("$ibx->{inboxdir}/$another", 1);
+my $mm = PublicInbox::Msgmap->new_file("$ibx->{inboxdir}/$another", 2);
 ok(0 == $mm->mid_set(1234, 'a@example.com'), 'mid_set not idempotent');
 ok(0 ==  $mm->mid_set(1, 'a@example.com'), 'mid_set fails with dup MID');
 my $mset = $ibx->search->mset('gmane:1234');