Bug 40246

Summary: Koha/Booking.t is failing randomly
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Test SuiteAssignee: Chris Cormack <chris>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
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:

Description Jonathan Druart 2025-06-26 06:37:17 UTC
Koha_Main_D11/959

02:16:35 koha_1       |         #   Failed test 'Multiple different items were selected randomly across bookings, and a cancelled booking is allowed in the selection'
02:16:35 koha_1       |         #   at t/db_dependent/Koha/Booking.t line 366.
02:16:35 koha_1       |         # Looks like you failed 1 test of 5.
02:16:35 koha_1       | 
02:16:35 koha_1       |     #   Failed test '_assign_item_for_booking() tests'
02:16:35 koha_1       |     #   at t/db_dependent/Koha/Booking.t line 369.
02:16:35 koha_1       | DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Duplicate entry '45' for key 'PRIMARY' at /kohadevbox/koha/Koha/Object.pm line 174
02:16:35 koha_1       | DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Data truncated for column 'status' at row 1 at /kohadevbox/koha/Koha/Object.pm line 174
02:16:35 koha_1       |     # Looks like you failed 1 test of 16.
02:16:35 koha_1       | 
02:16:35 koha_1       | #   Failed test 'store() tests'
02:16:35 koha_1       | #   at t/db_dependent/Koha/Booking.t line 628.
02:16:35 koha_1       | # Looks like you failed 1 test of 2.
02:16:35 koha_1       | [00:13:22] t/db_dependent/Koha/Booking.t