Browse files

Test::More 0.94 seems to not have implicit done_testing at the end of…

… subtests.
  • Loading branch information...
1 parent a4a3c2e commit a7bd7de1bc3e1b5420c3498a9b5858a874f5d708 Jonathan Steinert committed Mar 18, 2012
Showing with 7 additions and 0 deletions.
  1. +3 −0 CHANGES
  2. +1 −0 t/91-fields.t
  3. +3 −0 t/99-benchmark-bool.t
View
3 CHANGES
@@ -1,3 +1,6 @@
+ -- Fix Test::More 0.94 (Which is our required version) testing problems.
+ (Jonathan Steinert <hachi@kuiki.net>)
+
-- Fix (loopback/localhost) connection failures on some BSD machines.
(Jonathan Steinert <hachi@kuiki.net>)
View
1 t/91-fields.t
@@ -19,6 +19,7 @@ SKIP: {
use_ok('Perlbal::CommandContext');
eval { Perlbal::CommandContext->new(); };
like( $@, qr{$warn_mocked}, "use old library" );
+ done_testing();
};
}
View
3 t/99-benchmark-bool.t
@@ -11,13 +11,15 @@ my $class = 'Perlbal::Service';
subtest 'module checking' => sub {
isa_ok( $class->new(), $class, "can create object from $class" );
+ done_testing();
};
my @words = generate_words(1000);
subtest 'check sub integrity' => sub {
is_deeply( test_optimized(), test_original(), "sub optimized" );
is_deeply( test_hash(), test_original(), "sub hash" );
+ done_testing();
};
SKIP: {
@@ -36,6 +38,7 @@ SKIP: {
'hash' => \&test_hash,
}
);
+ done_testing();
};
}

0 comments on commit a7bd7de

Please sign in to comment.