Bug 14197: Remove the warning on destroying TestBuilder objects

This module will be called by db_dependent tests, which already create a
transaction.
TestBuilder creates a new one (which is certainly useless) and the
rollback does not do anything.

To see the warning see patches on bug 14045.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
This commit is contained in:
Jonathan Druart 2015-05-13 17:58:45 +02:00 committed by Tomas Cohen Arazi
parent c7a6745bc0
commit 0b6460b191

View file

@ -357,7 +357,9 @@ sub _gen_blob {
sub DESTROY { sub DESTROY {
my $self = shift; my $self = shift;
$self->schema->txn_rollback(); eval {
$self->schema->txn_rollback();
};
} }