Skip to content

Commit

Permalink
test environment cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 23, 2011
1 parent af5528d commit d08bfb7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion t/mojo/ioloop.t
Expand Up @@ -7,7 +7,7 @@ BEGIN {
$ENV{MOJO_IOWATCHER} = 'Mojo::IOWatcher';
}

use Test::More tests => 15;
use Test::More tests => 17;

# "Marge, you being a cop makes you the man!
# Which makes me the woman, and I have no interest in that,
Expand Down Expand Up @@ -141,7 +141,11 @@ my %args = (
}
);
$loop->connect(\%args);
$ENV{MOJO_REUSE} =~ /(?:^|\,)($port\:\d)/;
my $reuse = $1;
ok $reuse, 'file descriptor can be reused';
$loop->start;
unlike $ENV{MOJO_REUSE}, qr/$reuse/, 'environment has been cleaned up';
ok $connected, 'connected';
ok !$error, 'no error';
$connected = $error = undef;
Expand Down

0 comments on commit d08bfb7

Please sign in to comment.