diff options
author | Eric Wong <e@80x24.org> | 2019-12-18 03:36:43 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-12-19 03:59:17 +0000 |
commit | 684d26cecc0891261783be179909b0e434692b25 (patch) | |
tree | a1d78c9f23792d0272ee542c06cd347b848cffc6 /t/www_listing.t | |
parent | 55b11c59936125aab26694e17631828c7ea9954e (diff) | |
download | public-inbox-684d26cecc0891261783be179909b0e434692b25.tar.gz |
These usages of file-local global variables make the *.t files incompatible with run_script(). Instead, use anonymous subs, "our", or pass the parameter as appropriate.
Diffstat (limited to 't/www_listing.t')
-rw-r--r-- | t/www_listing.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/www_listing.t b/t/www_listing.t index c9201213..e1263360 100644 --- a/t/www_listing.t +++ b/t/www_listing.t @@ -33,7 +33,7 @@ like(PublicInbox::WwwListing::fingerprint($bare), qr/\A[a-f0-9]{40}\z/, 'got fingerprint with non-empty repo'); sub tiny_test { - my ($host, $port) = @_; + my ($json, $host, $port) = @_; my $http = HTTP::Tiny->new; my $res = $http->get("http://$host:$port/manifest.js.gz"); is($res->{status}, 200, 'got manifest'); @@ -107,7 +107,7 @@ SKIP: { $td = start_script($cmd, $env, { 3 => $sock }); $sock = undef; - tiny_test($host, $port); + tiny_test($json, $host, $port); skip 'skipping grok-pull integration test', 2 if !which('grok-pull'); |