From f94cfcfee41f73109e108cc670ebc3f1aa3d2602 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 8 Jul 2026 15:20:13 +0000 Subject: [PATCH] Bug 43033: Test with a lot of holds Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize Signed-off-by: Pedro Amorim --- .../HoldsQueue/TransportCostOptimizations.t | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/HoldsQueue/TransportCostOptimizations.t b/t/db_dependent/HoldsQueue/TransportCostOptimizations.t index ab936fff1b..01989bf447 100755 --- a/t/db_dependent/HoldsQueue/TransportCostOptimizations.t +++ b/t/db_dependent/HoldsQueue/TransportCostOptimizations.t @@ -9,7 +9,7 @@ use Modern::Perl; -use Test::More tests => 123; +use Test::More tests => 128; use Test::NoWarnings; use Test::Warn; use Data::Dumper; @@ -367,6 +367,19 @@ test_allocation( 1 ); +test_allocation( + "many holds, three items at Library A, none at B, three a C - only library C holds should fill with C items", + [ + [ 0, -1, -1 ], + [ -1, 0, -1 ], + [ -1, -1, 0 ], + ], + [ 3, 0, 3 ], + [ 0, 5, 22 ], + [ [ 2, 2 ], [ 2, 2 ], [ 2, 2 ] ], + 0 +); + test_allocation( "large volume", [