diff options
author | Eric Wong <e@80x24.org> | 2017-06-22 19:51:23 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-06-22 19:51:23 +0000 |
commit | 1e57ecc0dcbc64a6829a93dc81cfb6ab6f0ce71b (patch) | |
tree | 3e50a1ab44a1229895710d5212e4c3722af985a7 /t/msgmap.t | |
parent | 9b80f2bedbe5a8a9154dfa0ba3c7e63012287bea (diff) | |
download | public-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/msgmap.t')
-rw-r--r-- | t/msgmap.t | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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"); |