Permalink
Browse files

Fix a test failure if an internet isn't available.

Tests still don't pass but 'you actually get a "not ok" instead of
"Looks like you planned 4 tests but ran 3"'.  Thanks, Tod McQuillin!
  • Loading branch information...
1 parent 2a03812 commit c20a7f76c2bed51677a36f8c0f17fedcc4ef5051 @rcaputo committed Aug 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 t/01-basic.t
View
@@ -103,7 +103,7 @@ POE::Session->create(
my @got_families = map { $_->{family} } @$addresses;
my $i = $#got_families;
- while ($i--) {
+ while ($i > 0 and $i--) {
splice(@got_families, $i, 1) if (
$got_families[$i] == $got_families[$i+1]
);

0 comments on commit c20a7f7

Please sign in to comment.