diff options
author | Eric Wong <e@80x24.org> | 2021-02-09 07:09:31 -0100 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-02-10 06:59:04 +0000 |
commit | 550c69496caa3c61188c645b536ec3c4c3ade70a (patch) | |
tree | 1549ed902240a5ef5d6dec237e7da340d2ceeb98 /lib/PublicInbox/TestCommon.pm | |
parent | c57dc1468102aab386ed5dd3ae03d37f5b793aaa (diff) | |
download | public-inbox-550c69496caa3c61188c645b536ec3c4c3ade70a.tar.gz |
We'll do more requires in the top-level lei-daemon process to save work in workers. We can also work towards aborting on user errors in lei-daemon rather than worker processes. "lei import -f mbox*" is finally tested inside t/lei_to_mail.t
Diffstat (limited to 'lib/PublicInbox/TestCommon.pm')
-rw-r--r-- | lib/PublicInbox/TestCommon.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index ec9191b6..53f13437 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -14,7 +14,7 @@ BEGIN { @EXPORT = qw(tmpdir tcp_server tcp_connect require_git require_mods run_script start_script key2sub xsys xsys_e xqx eml_load tick have_xapian_compact json_utf8 setup_public_inboxes - tcp_host_port test_lei $lei $lei_out $lei_err $lei_opt); + tcp_host_port test_lei lei $lei $lei_out $lei_err $lei_opt); require Test::More; my @methods = grep(!/\W/, @Test::More::EXPORT); eval(join('', map { "*$_=\\&Test::More::$_;" } @methods)); @@ -457,6 +457,8 @@ our $lei = sub { $res; }; +sub lei (@) { $lei->(@_) } + sub json_utf8 () { state $x = ref(PublicInbox::Config->json)->new->utf8->canonical; } |