Skip to content

Instantly share code, notes, and snippets.

View ksmadsen's full-sized avatar

Klaus S. Madsen ksmadsen

View GitHub Profile
@ksmadsen
ksmadsen / mojo_test.t
Created August 28, 2017 07:10
"Premature connection close" failure with Test::Mojo
use Mojo::Base;
use Mojolicious::Lite;
use Test::Mojo;
use Test::More;
get '/test' => sub { shift->render( text => "Test" ) };
my $t = Test::Mojo->new;
$t->get_ok('/test')->status_is(200);