Bug 40377 - HoldsQueue/TransportCostOptimizations.t generates warnings
Summary: HoldsQueue/TransportCostOptimizations.t generates warnings
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Test Suite (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low minor
Assignee: Jonathan Druart
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks: 25515
  Show dependency treegraph
 
Reported: 2025-07-15 10:09 UTC by Jonathan Druart
Modified: 2025-07-17 22:20 UTC (History)
1 user (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 40377: Remove warnings from HoldsQueue/TransportCostOptimizations.t (1.90 KB, patch)
2025-07-15 10:10 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 40377: Remove warnings from HoldsQueue/TransportCostOptimizations.t (1.95 KB, patch)
2025-07-17 22:19 UTC, David Nind
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2025-07-15 10:09:26 UTC
UseTransportCostMatrix set to yes, but matrix not populated at /kohadevbox/koha/C4/HoldsQueue.pm line 188.
UseTransportCostMatrix set to yes, but matrix not populated at /kohadevbox/koha/C4/HoldsQueue.pm line 188.
Comment 1 Jonathan Druart 2025-07-15 10:10:29 UTC
Created attachment 184079 [details] [review]
Bug 40377: Remove warnings from HoldsQueue/TransportCostOptimizations.t

UseTransportCostMatrix set to yes, but matrix not populated at /kohadevbox/koha/C4/HoldsQueue.pm line 188.
UseTransportCostMatrix set to yes, but matrix not populated at /kohadevbox/koha/C4/HoldsQueue.pm line 188.

It seems that they are expected, we simply need to catch them.
Comment 2 David Nind 2025-07-17 22:19:17 UTC
Created attachment 184246 [details] [review]
Bug 40377: Remove warnings from HoldsQueue/TransportCostOptimizations.t

UseTransportCostMatrix set to yes, but matrix not populated at /kohadevbox/koha/C4/HoldsQueue.pm line 188.
UseTransportCostMatrix set to yes, but matrix not populated at /kohadevbox/koha/C4/HoldsQueue.pm line 188.

It seems that they are expected, we simply need to catch them.

Signed-off-by: David Nind <david@davidnind.com>
Comment 3 David Nind 2025-07-17 22:20:19 UTC
Testing notes (using KTD):
1. prove t/db_dependent/HoldsQueue/TransportCostOptimizations.t