about summary refs log tree commit homepage
path: root/t/cgi.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-05-23 09:36:40 +0000
committerEric Wong <e@80x24.org>2019-05-23 17:43:50 +0000
commit96a27a0a073b61c465240bbbbb05a4c16f67c8d4 (patch)
tree6ab703c46757f61782e5d135ebc5ef29826fc868 /t/cgi.t
parent646c15c17c323aa80a9a25ca8755720926564ef8 (diff)
downloadpublic-inbox-96a27a0a073b61c465240bbbbb05a4c16f67c8d4.tar.gz
In retrospect, introducing V1Writable was unnecessary and
InboxWritable->importer is in a better position to abstract
away differences between v1 and v2 writers.

So teach InboxWritable to initialize inboxes and get rid
of V1Writable.
Diffstat (limited to 't/cgi.t')
-rw-r--r--t/cgi.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/cgi.t b/t/cgi.t
index d3172bf7..81130df5 100644
--- a/t/cgi.t
+++ b/t/cgi.t
@@ -41,11 +41,11 @@ my $cfgpfx = "publicinbox.test";
 use_ok 'PublicInbox::Git';
 use_ok 'PublicInbox::Import';
 use_ok 'PublicInbox::Inbox';
-use_ok 'PublicInbox::V1Writable';
+use_ok 'PublicInbox::InboxWritable';
 use_ok 'PublicInbox::Config';
 my $cfg = PublicInbox::Config->new($pi_config);
 my $ibx = $cfg->lookup_name('test');
-my $im = PublicInbox::V1Writable->new($ibx);
+my $im = PublicInbox::InboxWritable->new($ibx)->importer;
 
 {
         local $ENV{HOME} = $home;