Bug 10845: (follow-up) update how a test case counts print hold available notices
authorGalen Charlton <gmc@esilibrary.com>
Fri, 2 May 2014 19:01:37 +0000 (19:01 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 2 May 2014 20:29:19 +0000 (20:29 +0000)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/db_dependent/Reserves.t

index af9d7a9..0698534 100755 (executable)
@@ -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];
 }