Convert all tests to done_testing.
[gitmo/Class-MOP.git] / t / 312_anon_class_leak.t
index 14ac2d3..46bcf7e 100644 (file)
@@ -9,8 +9,6 @@ BEGIN {
     plan skip_all => "Test::LeakTrace is required for this test" if $@;
 }
 
-plan tests => 2;
-
 # 5.10.0 has a bug on weaken($hash_ref) which leaks an AV.
 my $expected = ( $] == 5.010_000 ? 1 : 0 );
 
@@ -24,3 +22,4 @@ leaks_cmp_ok {
 }
 '<=', $expected, 'create_anon_class(superclass => [...])';
 
+done_testing;