Bugzilla – Attachment 100954 Details for
Bug 24200
Borrower_PrevCheckout.t failing randomly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24200: (follow-up) Try to fix random failures from Borrower_PrevCheckout.t
Bug-24200-follow-up-Try-to-fix-random-failures-fro.patch (text/plain), 1.58 KB, created by
Jonathan Druart
on 2020-03-18 12:44:22 UTC
(
hide
)
Description:
Bug 24200: (follow-up) Try to fix random failures from Borrower_PrevCheckout.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-03-18 12:44:22 UTC
Size:
1.58 KB
patch
obsolete
>From 632125727123c97392a7539d4220b0df09521da7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 18 Mar 2020 13:43:52 +0100 >Subject: [PATCH] Bug 24200: (follow-up) Try to fix random failures from > Borrower_PrevCheckout.t > >2 other occurrences where missing. >--- > t/db_dependent/Patron/Borrower_PrevCheckout.t | 20 ++----------------- > 1 file changed, 2 insertions(+), 18 deletions(-) > >diff --git a/t/db_dependent/Patron/Borrower_PrevCheckout.t b/t/db_dependent/Patron/Borrower_PrevCheckout.t >index 9fabec06e7..00e21e612d 100644 >--- a/t/db_dependent/Patron/Borrower_PrevCheckout.t >+++ b/t/db_dependent/Patron/Borrower_PrevCheckout.t >@@ -377,24 +377,8 @@ my $CBBI_patron = $builder->build({source => 'Borrower', value => { categorycode > $patron = Koha::Patrons->find( $CBBI_patron->{borrowernumber} ); > # Our Items > >-my $new_item = $builder->build({ >- source => 'Item', >- value => { >- notforloan => 0, >- withdrawn => 0, >- itemlost => 0, >- biblionumber => $builder->build( { source => 'Biblioitem' } )->{biblionumber}, >- }, >-}); >-my $prev_item = $builder->build({ >- source => 'Item', >- value => { >- notforloan => 0, >- withdrawn => 0, >- itemlost => 0, >- biblionumber => $builder->build( { source => 'Biblioitem' } )->{biblionumber}, >- }, >-}); >+my $new_item = $builder->build_sample_item->unblessed; >+my $prev_item = $builder->build_sample_item->unblessed; > # Second is Checked Out > BAIL_OUT("CanBookBeIssued Issue failed") > unless AddIssue($patron->unblessed, $prev_item->{barcode}); >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24200
:
97182
| 100954