$host_port .= ":119" unless index($host_port, ':') > 0;
} else {
$group = 'inbox.test.perf.nntpd';
$host_port .= ":119" unless index($host_port, ':') > 0;
} else {
$group = 'inbox.test.perf.nntpd';
$ibx = PublicInbox::Inbox->new($ibx);
my $nntpd = 'blib/script/public-inbox-nntpd';
my $tmpdir = tempdir('perf-nntpd-XXXXXX', TMPDIR => 1, CLEANUP => 1);
$ibx = PublicInbox::Inbox->new($ibx);
my $nntpd = 'blib/script/public-inbox-nntpd';
my $tmpdir = tempdir('perf-nntpd-XXXXXX', TMPDIR => 1, CLEANUP => 1);
ok($sock, 'sock created');
my $cmd = [ $nntpd, '-W0' ];
$pid = spawn_listener({ PI_CONFIG => $pi_config }, $cmd, [$sock]);
ok($sock, 'sock created');
my $cmd = [ $nntpd, '-W0' ];
$pid = spawn_listener({ PI_CONFIG => $pi_config }, $cmd, [$sock]);