[Koha-bugs] [Bug 34846] New: SIP/ILS.t is failing if the DB has been upgraded

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 20 15:36:41 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34846

            Bug ID: 34846
           Summary: SIP/ILS.t is failing if the DB has been upgraded
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: ASSIGNED
          Severity: normal
          Priority: P5 - low
         Component: Test Suite
          Assignee: a.roussos at dataly.gr
          Reporter: jonathan.druart+koha at gmail.com
        QA Contact: testopia at bugs.koha-community.org
        Depends on: 34258
            Blocks: 34841

The number of renewals allowed needs to be mocked/set, or the tests are
failing.

To recreate:
root at kohadevbox:koha$ perl /kohadevbox/misc4dev/run_tests.pl
--run-db-upgrade-only

kohadev-koha at kohadevbox:koha$ prove t/db_dependent/SIP/ILS.t
t/db_dependent/SIP/ILS.t .. 14/15 
    #   Failed test 'Renewal succeeded'
    #   at t/db_dependent/SIP/ILS.t line 346.
    #          got: '0'
    #     expected: '1'
    # Looks like you failed 1 test of 2.

#   Failed test 'renew'
#   at t/db_dependent/SIP/ILS.t line 348.
# Looks like you failed 1 test of 15.


$transaction->{screen_msg} contains "Item has reached maximum renewals".

Please fix ASAP.


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34258
[Bug 34258] Cannot renew item via SIP2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34841
[Bug 34841] The test suite is failing is the DB has been upgraded
-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list