comparison lib/Test/Nginx/SMTP.pm @ 526:e6817a00ba00

Tests: remove stray "return" from mail modules. It shouldn't be here and resulted in non-working autoflush.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 26 Feb 2015 20:16:11 +0300
parents 9d0a2fa47ac6
children 3fcad5e66735
comparison
equal deleted inserted replaced
525:13eafeb7d9cb 526:e6817a00ba00
18 use base qw/ IO::Socket::INET /; 18 use base qw/ IO::Socket::INET /;
19 19
20 sub new { 20 sub new {
21 my $class = shift; 21 my $class = shift;
22 22
23 my $self = return $class->SUPER::new( 23 my $self = $class->SUPER::new(
24 Proto => "tcp", 24 Proto => "tcp",
25 PeerAddr => "127.0.0.1:8025", 25 PeerAddr => "127.0.0.1:8025",
26 @_ 26 @_
27 ) 27 )
28 or die "Can't connect to nginx: $!\n"; 28 or die "Can't connect to nginx: $!\n";