From c4e3f89b1b3c0792c3dcbcb7df37c9e75e300cbd Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 29 Sep 2020 16:06:19 +0200 Subject: [PATCH] Bug 26524: Save some processor cycles --- t/db_dependent/Koha/Acquisition/Basket.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Koha/Acquisition/Basket.t b/t/db_dependent/Koha/Acquisition/Basket.t index abe3d12a9f..cd2e09d3f0 100755 --- a/t/db_dependent/Koha/Acquisition/Basket.t +++ b/t/db_dependent/Koha/Acquisition/Basket.t @@ -290,13 +290,13 @@ subtest 'orders' => sub { my @actual_orders; - for ( 1..10 ) { + for ( 1..3 ) { push @actual_orders, $builder->build_object({ class => 'Koha::Acquisition::Orders', value => { basketno => $basket->id } }); } $orders = $basket->orders; is( ref($orders), 'Koha::Acquisition::Orders', 'Type is correct with no attached orders' ); - is( $orders->count, 10, '10 orders attached, count 10' ); + is( $orders->count, 3, '3 orders attached, count 3' ); $schema->storage->txn_rollback; }; -- 2.20.1