Bug 19517

Summary: dateexpiry.t is failing randomly
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Architecture, internals, and plumbingAssignee: Jonathan Druart <jonathan.druart>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 25551, 19776    
Attachments: Bug 19517: Prevent dateexpiry.t to fail randomly

Description Jonathan Druart 2017-10-23 16:16:43 UTC
#   Failed test 'Tests for CanBookBeIssued related to dateexpiry'
#   at t/db_dependent/Circulation/dateexpiry.t line 40.
Can't use an undefined value as a HASH reference at /kohadevbox/koha/C4/Circulation.pm line 728.

Once again it seems to be caused by a patron's category_code = 'X'
Comment 1 Jonathan Druart 2017-10-23 16:22:24 UTC
Created attachment 68423 [details] [review]
Bug 19517: Prevent dateexpiry.t to fail randomly

If categorycode is 'X', the test will fail

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 2 Jonathan Druart 2017-10-23 17:46:56 UTC
Pushed to master for 17.11