From a09f678d8254064af7ca6dcfb3c3f84b5ae37b51 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 22 Dec 2019 22:17:37 +0000 Subject: testcommon: add require_mods method and use it This cuts down on lines of code in individual test cases and fixes some misnamed error messages by using "$0" consistently. This will also provide us with a method of swapping out dependencies which provide equivalent functionality (e.g "Xapian" SWIG can replace "Search::Xapian" XS bindings). --- xt/perf-nntpd.t | 1 - 1 file changed, 1 deletion(-) (limited to 'xt/perf-nntpd.t') diff --git a/xt/perf-nntpd.t b/xt/perf-nntpd.t index df5ecb41..e4fd7355 100644 --- a/xt/perf-nntpd.t +++ b/xt/perf-nntpd.t @@ -8,7 +8,6 @@ use PublicInbox::Inbox; use Net::NNTP; my $inboxdir = $ENV{GIANT_INBOX_DIR} // $ENV{GIANT_PI_DIR}; plan skip_all => "GIANT_INBOX_DIR not defined for $0" unless defined($inboxdir); -eval { require PublicInbox::Search }; my ($host_port, $group, %opts, $s, $td, $tmp_obj); use PublicInbox::TestCommon; -- cgit v1.2.3-24-ge0c7