From bccd2200c2bc315f5bc6ad35841fe4e8dbe34fca 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 Signed-off-by: Kyle M Hall --- 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 de941f2..e97ebe3 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.10.2