about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-06-22 19:51:23 +0000
committerEric Wong <e@80x24.org>2017-06-22 19:51:23 +0000
commit1e57ecc0dcbc64a6829a93dc81cfb6ab6f0ce71b (patch)
tree3e50a1ab44a1229895710d5212e4c3722af985a7 /t
parent9b80f2bedbe5a8a9154dfa0ba3c7e63012287bea (diff)
downloadpublic-inbox-1e57ecc0dcbc64a6829a93dc81cfb6ab6f0ce71b.tar.gz
This will allow smoother imports as occasional Message-ID
duplicates happen and the best we can do is ignore the
second one.
Diffstat (limited to 't')
-rw-r--r--t/msgmap.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/msgmap.t b/t/msgmap.t
index 5c28e54d..a5232fab 100644
--- a/t/msgmap.t
+++ b/t/msgmap.t
@@ -27,9 +27,9 @@ foreach my $mid (@mids) {
 }
 
 $@ = undef;
-eval { $d->mid_insert('a@b') };
-ok($@, 'error raised when attempting duplicate message ID');
-
+my $ret = $d->mid_insert('a@b');
+is($ret, undef, 'duplicate mid_insert in undef result');
+is($d->num_for('a@b'), $mid2num{'a@b'}, 'existing number not clobbered');
 
 foreach my $n (keys %num2mid) {
         is($d->mid_for($n), $num2mid{$n}, "num:$n maps correctly");