diff --git a/t/db_dependent/Reserves.t b/t/db_dependent/Reserves.t index af9d7a9f53..0698534607 100755 --- a/t/db_dependent/Reserves.t +++ b/t/db_dependent/Reserves.t @@ -399,7 +399,10 @@ $dbh->rollback; sub count_hold_print_messages { my $message_count = $dbh->selectall_arrayref(q{ - SELECT COUNT(*) FROM message_queue WHERE letter_code = 'HOLD_PRINT' + SELECT COUNT(*) + FROM message_queue + WHERE letter_code = 'HOLD' + AND message_transport_type = 'print' }); return $message_count->[0]->[0]; }