From b894e71ae4f517e304d95dcedd1a1677b1e5c558 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 9 May 2019 13:04:38 -0500 Subject: [PATCH] Bug 22433: Add debug statement to Transaction.t Hard to know what's going on here without more info. Adding this output may help to investigate more. Test plan: Make sure the tests still pass If it fails, please paste the output!! --- t/db_dependent/SIP/Transaction.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/SIP/Transaction.t b/t/db_dependent/SIP/Transaction.t index 646a5c153d..f81b86262f 100755 --- a/t/db_dependent/SIP/Transaction.t +++ b/t/db_dependent/SIP/Transaction.t @@ -85,8 +85,9 @@ subtest fill_holds_at_checkout => sub { is( ref $transaction, "C4::SIP::ILS::Transaction::Checkout", "New transaction created" ); is( $transaction->patron( $sip_patron ), $sip_patron, "Patron assigned to transaction" ); is( $transaction->item( $sip_item ), $sip_item, "Item assigned to transaction" ); - $transaction->do_checkout(); - is( $bib->holds->count(), 1, "Bib has 1 holds remaining"); + my $checkout = $transaction->do_checkout(); + use Data::Printer colored => 1; # Temporary debug statement + is( $bib->holds->count(), 1, "Bib has 1 holds remaining") or diag p $checkout; }; -- 2.11.0