X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=t%2Fmsgmap.t;h=a3b7200f16a566c39041f586c9fc9f97b665de3e;hp=2d462dfb0fa5952114331ab83266a3a968946469;hb=9f02576da775abf208f5a03c03b6f7abd72596d0;hpb=2a3c8d7a2c40ad9424db10d68470d8bb120bddf9 diff --git a/t/msgmap.t b/t/msgmap.t index 2d462dfb..a3b7200f 100644 --- a/t/msgmap.t +++ b/t/msgmap.t @@ -7,7 +7,8 @@ use PublicInbox::TestCommon; require_mods('DBD::SQLite'); use_ok 'PublicInbox::Msgmap'; my ($tmpdir, $for_destroy) = tmpdir(); -my $d = PublicInbox::Msgmap->new($tmpdir, 1); +my $f = "$tmpdir/msgmap.sqlite3"; +my $d = PublicInbox::Msgmap->new_file($f, 1); my %mid2num; my %num2mid; @@ -50,7 +51,7 @@ is($d->mid_delete('a@b') + 0, 0, 'delete again returns zero'); is(undef, $d->num_for('a@b'), 'num_for fails on deleted msg'); $d = undef; -ok($d = PublicInbox::Msgmap->new($tmpdir, 1), 'idempotent DB creation'); +ok($d = PublicInbox::Msgmap->new_file($f, 1), 'idempotent DB creation'); my ($min, $max) = $d->minmax; ok($min > 0, "article min OK"); ok($max > 0 && $max < 10, "article max OK");