From 317caa3e235009d261fe62dfb5f23ca3252c4f78 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Wed, 20 Feb 2019 16:08:38 +0000 Subject: [PATCH] Bug 22368: (QA follow-up) Mute db errors in test Signed-off-by: Josef Moravec --- t/db_dependent/Koha/Suggestions.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/db_dependent/Koha/Suggestions.t b/t/db_dependent/Koha/Suggestions.t index 304c416f0c..109488758a 100644 --- a/t/db_dependent/Koha/Suggestions.t +++ b/t/db_dependent/Koha/Suggestions.t @@ -83,6 +83,9 @@ subtest 'constraints' => sub { plan tests => 11; $schema->storage->txn_begin; + my $print_error = $schema->storage->dbh->{PrintError}; + $schema->storage->dbh->{PrintError} = 0; + my $patron = $builder->build_object( { class => "Koha::Patrons" } ); my $biblio = $builder->build_sample_biblio(); my $branch = $builder->build_object( { class => "Koha::Libraries" } ); @@ -164,5 +167,6 @@ subtest 'constraints' => sub { is( $suggestion->budgetid, undef, "The suggestion is not deleted when the related budget is deleted" ); + $schema->storage->dbh->{PrintError} = $print_error; $schema->storage->txn_rollback; }; -- 2.20.1