@@ -, +, @@ --- t/db_dependent/Log.t | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) --- a/t/db_dependent/Log.t +++ a/t/db_dependent/Log.t @@ -19,9 +19,13 @@ BEGIN { } my $success; +# Make sure we can rollback. +my $dbh = C4::Context->dbh; +$dbh->{AutoCommit} = 0; +$dbh->{RaiseError} = 1; + eval { # FIXME: are we sure there is an member number 1? - # FIXME: can we remove this log entry somehow? logaction("MEMBERS","MODIFY",1,"test operation"); $success = 1; } or do { @@ -57,11 +61,6 @@ eval { }; ok($success, "GetLogs seemed to find ".$success." like our test record in a tighter search"); -# Make sure we can rollback. -my $dbh = C4::Context->dbh; -$dbh->{AutoCommit} = 0; -$dbh->{RaiseError} = 1; - # We want numbers to be the same between runs. $dbh->do("DELETE FROM action_logs;"); --