diff options
Diffstat (limited to 'xt/httpd-async-stream.t')
-rw-r--r-- | xt/httpd-async-stream.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xt/httpd-async-stream.t b/xt/httpd-async-stream.t index 904f2ae9..099ceb79 100644 --- a/xt/httpd-async-stream.t +++ b/xt/httpd-async-stream.t @@ -67,7 +67,7 @@ my $do_get_all = sub { } my $res = $dig->hexdigest; my $elapsed = sprintf('%0.3f', now() - $t0); - close $rd or die "close curl failed: $! \$?=$?\n"; + $rd->close or xbail "close curl failed: $! \$?=$?\n"; print STDERR "# $job $$ ($?) $res (${elapsed}s) $bytes bytes\n"; $res; }; |