Skip to content

Commit b3f0236

Browse files
committed
Skip the ServerStatus middleware for tests
1 parent 2eab968 commit b3f0236

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app.psgi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ $app = Plack::Middleware::ServerStatus::Lite->wrap(
3535
path => '/server-status',
3636
allow => ['127.0.0.1'],
3737
scoreboard => "$FindBin::RealBin/var/tmp/scoreboard"
38-
);
38+
) unless $0 =~ /\.t$/;
3939
$app = Plack::Middleware::Runtime->wrap($app);
4040
$app = Plack::Middleware::Assets->wrap( $app,
4141
files => [<root/static/css/*.css>] );
@@ -82,4 +82,4 @@ Plack::Middleware::ReverseProxy->wrap(
8282
httponly => 1,
8383
)->($env);
8484
}
85-
);
85+
);

0 commit comments

Comments
 (0)