X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Faltid_v2.t;h=281a09d51dd0cfe4af5ed0b5590ec97b8a74b68c;hb=6e0ac7612095397ef3b9e019f772d724c62eac5b;hp=47ebec85ff8e9b42fd0afbd12fcff3fb5fcfcb27;hpb=29792d70a5d8305f68521664a7fa2e0fe54ff291;p=public-inbox.git diff --git a/t/altid_v2.t b/t/altid_v2.t index 47ebec85..281a09d5 100644 --- a/t/altid_v2.t +++ b/t/altid_v2.t @@ -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: 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');