Bug 19828: Fix tests that expect DBD errors instead of the exception message

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Tomás Cohen Arazi 2017-12-20 15:33:48 -03:00 committed by Jonathan Druart
parent 84a8f09ec2
commit 4fc594bcb4

View file

@ -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';