about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-21 08:29:25 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-22 00:12:43 +0000
commit2e5d47e4c02757c027461149b3e1568d713252b1 (patch)
tree3716730e94f8f9e5287650458d2c2146da2be140 /t
parent8e52e5fdea416d6fda0b8d301144af0c043a5a76 (diff)
downloadpublic-inbox-2e5d47e4c02757c027461149b3e1568d713252b1.tar.gz
This will be used to keep track of Message-ID <-> NNTP Article
numbers to prevent article number reuse when reindexing.
Diffstat (limited to 't')
-rw-r--r--t/msgmap.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/msgmap.t b/t/msgmap.t
index bc22137d..dce98f46 100644
--- a/t/msgmap.t
+++ b/t/msgmap.t
@@ -65,4 +65,8 @@ my $orig = $d->mid_insert('spam@1');
 $d->mid_delete('spam@1');
 is($d->mid_insert('spam@2'), 1 + $orig, "last number not recycled");
 
+my $tmp = $d->tmp_clone;
+is_deeply([$d->minmax], [$tmp->minmax], 'Cloned temporary DB matches');
+ok($tmp->mid_delete('spam@2'), 'temporary DB is writable');
+
 done_testing();