Bug 40992

Summary: Koha/Patrons.t failing on "Test edge cases with date calculations" (midnight)
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Test SuiteAssignee: Chris Cormack <chris>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low    
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 32604    
Bug Blocks:    

Description Jonathan Druart 2025-10-10 07:16:01 UTC
02:01:09 koha-1      | [23:59:21] t/db_dependent/Koha/Acquisition/Baskets.t ................................... ok     1228 ms ( 0.00 usr  0.00 sys +  1.08 cusr  0.13 csys =  1.21 CPU)
02:01:09 koha-1      | 
02:01:09 koha-1      |         #   Failed test 'Patron one day younger than min age is marked as too young'
02:03:37 koha-1      |         #   at t/db_dependent/Koha/Patrons.t line 3023.
02:03:37 koha-1      |         # Looks like you failed 1 test of 4.
02:03:37 koha-1      | 
02:03:37 koha-1      |     #   Failed test 'Test edge cases with date calculations'
02:03:37 koha-1      |     #   at t/db_dependent/Koha/Patrons.t line 3048.
02:03:37 koha-1      |     # Looks like you failed 1 test of 9.
02:03:37 koha-1      | 
02:03:37 koha-1      | #   Failed test 'search_patrons_to_update_category tests'
02:03:37 koha-1      | #   at t/db_dependent/Koha/Patrons.t line 3051.
02:03:37 koha-1      | # Looks like you failed 1 test of 47.
02:03:37 koha-1      | [00:00:08] t/db_dependent/Koha/Patrons.t ............................................... 
02:03:37 koha-1      | Dubious, test returned 1 (wstat 256, 0x100)
02:03:37 koha-1      | Failed 1/47 subtests 
02:03:37 koha-1      | [00:00:14] t/db_dependent/api/v1/erm_agreements.t ...................................... ok     5818 ms ( 0.02 usr  0.00 sys +  5.17 cusr  0.41 

I think we are unlucky and we passed midnight in the middle of the test.