about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-19 12:50:25 +0000
committerEric Wong <e@80x24.org>2021-09-19 19:52:47 +0000
commitee355020415fbbebbeb8fbe79be4e4f3fa2e657b (patch)
tree13a6d79cb75a7a2d87e04acef236b2b25aefabd0 /t
parent7cbdc00ece1c77d25e6654446624e6457145e955 (diff)
downloadpublic-inbox-ee355020415fbbebbeb8fbe79be4e4f3fa2e657b.tar.gz
In retrospect, I don't think it's needed; and trying to wire up
a user interface for lei to manage process counts doesn't seem
worthwhile.  It could be resurrected for public-facing daemon
use in the future, but that's what version control systems are for.

This also lets us automatically avoid setting up broadcast
sockets

Followup-to: 7b7939d47b336fb7 ("lei: lock worker counts")
Diffstat (limited to 't')
-rw-r--r--t/ipc.t13
1 files changed, 1 insertions, 12 deletions
diff --git a/t/ipc.t b/t/ipc.t
index 202b1cc6..ce89f94b 100644
--- a/t/ipc.t
+++ b/t/ipc.t
@@ -180,24 +180,13 @@ SKIP: {
         is($warn[2], $warn[1], 'worker did not die');
 
         $SIG{__WARN__} = 'DEFAULT';
-        is($ipc->wq_workers_start('wq', 1), $$, 'workers started again');
-        is($ipc->wq_workers, 1, '1 worker started');
-
-        $ipc->wq_worker_incr;
-        is($ipc->wq_workers, 2, 'worker count bumped');
-        $ipc->wq_worker_decr;
-        $ipc->wq_worker_decr_wait(10);
-        is($ipc->wq_workers, 1, 'worker count lowered');
-        is($ipc->wq_workers(2), 2, 'worker count set');
-        is($ipc->wq_workers, 2, 'worker count stayed set');
-
+        is($ipc->wq_workers_start('wq', 2), $$, 'workers started again');
         $ipc->wq_broadcast('test_append_pid', "$tmpdir/append_pid");
         $ipc->wq_close;
         open my $fh, '<', "$tmpdir/append_pid" or BAIL_OUT "open: $!";
         chomp(my @pids = <$fh>);
         my %pids = map { $_ => 1 } grep(/\A[0-9]+\z/, @pids);
         is(scalar keys %pids, 2, 'broadcast hit both PIDs');
-        is($ipc->wq_workers, undef, 'workers undef after close');
 }
 
 done_testing;