diff options
author | Eric Wong <e@yhbt.net> | 2020-01-12 21:17:47 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-01-13 23:21:20 +0000 |
commit | 7669985165b5dacb60902406f2b5a894506bdc45 (patch) | |
tree | cd64268924b2c9d7d8f000118d919cca900ca257 /t/ds-leak.t | |
parent | 8acfb1f135a0c3d156ed5cc19a26844c09d20acb (diff) | |
download | public-inbox-7669985165b5dacb60902406f2b5a894506bdc45.tar.gz |
The class parameter is pointless, especially for an internal sub which only has one external caller in a test. Add a sub prototype while we're at it to get some compile time checking.
Diffstat (limited to 't/ds-leak.t')
-rw-r--r-- | t/ds-leak.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/ds-leak.t b/t/ds-leak.t index 34ffc125..a4a56e0d 100644 --- a/t/ds-leak.t +++ b/t/ds-leak.t @@ -20,7 +20,7 @@ if ('close-on-exec for epoll and kqueue') { my ($r, $w); pipe($r, $w) or die "pipe: $!"; - PublicInbox::DS->AddTimer(0, sub { $pid = spawn([qw(sleep 10)]) }); + PublicInbox::DS::add_timer(0, sub { $pid = spawn([qw(sleep 10)]) }); PublicInbox::DS->EventLoop; ok($pid, 'subprocess spawned'); |