[Koha-bugs] [Bug 14256] tests for TestBuider randomly fails
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri May 22 18:38:45 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14256
--- Comment #1 from Jonathan Druart <jonathan.druart at biblibre.com> ---
To reproduce
diff --git a/t/db_dependent/TestBuilder.t b/t/db_dependent/TestBuilder.t
index bec4834..93e3fb8 100644
--- a/t/db_dependent/TestBuilder.t
+++ b/t/db_dependent/TestBuilder.t
@@ -31,8 +31,9 @@ is( $builder->build(), undef, 'build without arguments
returns undef' );
my @sources = $builder->schema->sources;
my $nb_failure = 0;
+ at sources = ('Koha::Schema::Result::Borrower') x 1000;
for my $source (@sources) {
- eval { $builder->build( { source => $source } ); };
+ $builder->build( { source => $source } );
$nb_failure++ if ($@);
}
is( $nb_failure, 0, 'TestBuilder can create a entry for every sources' );
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list