-
Notifications
You must be signed in to change notification settings - Fork 582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert t/mojo/daemon.t to use subtests #1557
Conversation
d20aa2f
to
56a93d9
Compare
t/mojo/daemon.t
Outdated
}; | ||
|
||
subtest 'Timeouts' => sub { | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the block?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was unnecessary.
t/mojo/daemon.t
Outdated
is_deeply(Mojo::Server::Daemon->new->listen, ['http://*:80', 'https://*:443'], 'right value'); | ||
} | ||
my $ua = Mojo::UserAgent->new; | ||
my $tx = $ua->get('/'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this line belongs here.
t/mojo/daemon.t
Outdated
}; | ||
|
||
subtest 'Request limit' => sub { | ||
$daemon = Mojo::Server::Daemon->new(app => $app, listen => ['http://127.0.0.1'], silent => 1)->start; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$daemon
is not in the right scope.
t/mojo/daemon.t
Outdated
like $@, qr/IO::Socket::SSL/, 'right error'; | ||
}; | ||
|
||
subtest 'bstract methods' => sub { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo.
56a93d9...0c444f9 |
Squash your commits. |
0c444f9
to
46f5147
Compare
Squashed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
You missed these issues. 34d86b6...46b8784 |
Oops. Thank you for fixing it. |
Summary
t/mojo/daemon.t
to use subtestsMotivation
References
#1520