From 550b87b5397453f03df889df0733f0164ab102e9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 30 Sep 2024 21:30:07 +0000 Subject: [PATCH] xt/solver: use `psgi' shortcut for require_mods() The `psgi' shortcut simplifies setup, reduces the likelyhood of human error from omitted modules, and avoid needless `use_ok' tests which make the output noisier than necessary. --- xt/solver.t | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xt/solver.t b/xt/solver.t index 372d003b2..d074b1b52 100644 --- a/xt/solver.t +++ b/xt/solver.t @@ -4,9 +4,7 @@ use v5.12; use PublicInbox::TestCommon; use PublicInbox::Config; # this relies on PI_CONFIG // ~/.public-inbox/config -my @psgi = qw(HTTP::Request::Common Plack::Test URI::Escape Plack::Builder); -require_mods(qw(DBD::SQLite Xapian), @psgi); -use_ok($_) for @psgi; +require_mods qw(DBD::SQLite Xapian psgi); use_ok 'PublicInbox::WWW'; my $cfg = PublicInbox::Config->new; my $www = PublicInbox::WWW->new($cfg); -- 2.47.3