diff options
author | Eric Wong <e@80x24.org> | 2023-10-25 00:29:24 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-10-25 07:28:30 +0000 |
commit | f81954fe591c6a6358ba528118874313e3920e83 (patch) | |
tree | 4ac3d3a12791d97a1e986cc80eb5cde9b3924834 /t | |
parent | 5061fda82a5df67f12b0b392bdad481cc07aa283 (diff) | |
download | public-inbox-f81954fe591c6a6358ba528118874313e3920e83.tar.gz |
It's slightly better organized this way, especially since `publicinboxLimiter' has its own user-facing config section and knobs. I may use it in LeiMirror and CodeSearchIdx for process management.
Diffstat (limited to 't')
-rw-r--r-- | t/qspawn.t | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3,6 +3,7 @@ use v5.12; use Test::More; use_ok 'PublicInbox::Qspawn'; +use_ok 'PublicInbox::Limiter'; { my $cmd = [qw(sh -c), 'echo >&2 err; echo out']; @@ -23,7 +24,7 @@ sub finish_err ($) { $qsp->{qsp_err} && ${$qsp->{qsp_err}}; } -my $limiter = PublicInbox::Qspawn::Limiter->new(1); +my $limiter = PublicInbox::Limiter->new(1); { my $x = PublicInbox::Qspawn->new([qw(true)]); $x->{qsp_err} = \(my $err = ''); |