From 82f47548f5be7c6d211219483b38c6bdaf9beab2 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 20 Dec 2017 15:33:48 -0300 Subject: [PATCH] Bug 19828: Fix tests that expect DBD errors instead of the exception message --- t/db_dependent/Circulation/Returns.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Circulation/Returns.t b/t/db_dependent/Circulation/Returns.t index de941f22e4..e97ebe3bde 100644 --- a/t/db_dependent/Circulation/Returns.t +++ b/t/db_dependent/Circulation/Returns.t @@ -318,7 +318,7 @@ subtest 'Handle ids duplication' => sub { } [ qr{.*DBD::mysql::st execute failed: Duplicate entry.*}, - { carped => qr{The checkin for the following issue failed.*DBIx::Class::Storage::DBI::_dbh_execute.*} } + { carped => qr{The checkin for the following issue failed.*Duplicate ID.*} } ], 'DBD should have raised an error about dup primary key'; -- 2.15.1