Bug 24200: Try to fix random failures from Borrower_PrevCheckout.t
It failed inconsistently, let's try to use build_sample_item and see if
it fixes the random failures.
Test plan:
% prove t/db_dependent/Patron/Borrower_PrevCheckout.t
must return green
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit d5e9dc31ca)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
ed09fd488d
commit
0acd6c823a
|
|
@ -234,12 +234,12 @@ map {
|
|||
# $patron, $different_patron, $items (same bib number), $different_item
|
||||
my $patron = $builder->build({source => 'Borrower'});
|
||||
my $patron_d = $builder->build({source => 'Borrower'});
|
||||
my $item_1 = $builder->build({source => 'Item'});
|
||||
my $item_2 = $builder->build({
|
||||
source => 'Item',
|
||||
value => { biblionumber => $item_1->{biblionumber} },
|
||||
});
|
||||
my $item_d = $builder->build({source => 'Item'});
|
||||
|
||||
my $biblio = $builder->build_sample_biblio;
|
||||
$biblio->serial(0)->store;
|
||||
my $item_1 = $builder->build_sample_item({biblionumber => $biblio->biblionumber})->unblessed;
|
||||
my $item_2 = $builder->build_sample_item({biblionumber => $biblio->biblionumber})->unblessed;
|
||||
my $item_d = $builder->build_sample_item->unblessed;
|
||||
|
||||
## Testing Sub
|
||||
sub test_it {
|
||||
|
|
|
|||
Loading…
Reference in New Issue