summaryrefslogtreecommitdiffstats
path: root/t/04-streaming.t
diff options
context:
space:
mode:
Diffstat (limited to 't/04-streaming.t')
-rw-r--r--t/04-streaming.t8
1 files changed, 3 insertions, 5 deletions
diff --git a/t/04-streaming.t b/t/04-streaming.t
index 6c475ff..2bee7a9 100644
--- a/t/04-streaming.t
+++ b/t/04-streaming.t
@@ -7,8 +7,7 @@ use Plack::Client::Test;
use HTTP::Message::PSGI;
-my $app = <<'APP';
-sub {
+my $app = sub {
my $env = shift;
return sub {
my $cb = shift;
@@ -34,8 +33,7 @@ sub {
);
$w->close;
};
-}
-APP
+};
test_tcp_plackup(
$app,
@@ -48,7 +46,7 @@ test_tcp_plackup(
{
my $apps = {
- foo => eval $app,
+ foo => $app,
};
my $base_uri = 'psgi-local://foo';