[Koha-bugs] [Bug 18501] Automatic refunds need protection from failure

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 21 10:59:37 CEST 2020


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

--- Comment #108 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Martin, I am getting 2 failures with the last patches

kohadev-koha at kohadevbox:/kohadevbox/koha$ prove t/db_dependent/Koha/Items.t
t/db_dependent/Items.t
t/db_dependent/Koha/Items.t .. 1/11 
        #   Failed test 'damaged_on was set upon first truthy setting'
        #   at t/db_dependent/Koha/Items.t line 121.
        #          got: '2020-08-20 08:58:17'
        #     expected: '2020-08-20 08:58:16'

        #   Failed test 'damaged_on was not updated upon second truthy setting'
        #   at t/db_dependent/Koha/Items.t line 127.
        #          got: '2020-08-20 08:58:17'
        #     expected: '2020-08-20 08:58:16'
        # Looks like you failed 2 tests of 9.

    #   Failed test '*_on updates'
    #   at t/db_dependent/Koha/Items.t line 136.
    # Looks like you failed 1 test of 6.
t/db_dependent/Koha/Items.t .. 4/11 
#   Failed test 'store'
#   at t/db_dependent/Koha/Items.t line 809.
t/db_dependent/Koha/Items.t .. 9/11 # Looks like you failed 1 test of 11.
t/db_dependent/Koha/Items.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/11 subtests 
t/db_dependent/Items.t ....... 13/14 
    #   Failed test 'Non mapped field has not been reset'
    #   at t/db_dependent/Items.t line 999.
    #          got: ''
    #     expected: 'this is something'

    #   Failed test at t/db_dependent/Items.t line 1000.
    #          got: ''
    #     expected: 'this is something'
    # Looks like you failed 2 tests of 4.

#   Failed test 'ModItemFromMarc'
#   at t/db_dependent/Items.t line 1003.
# Looks like you failed 1 test of 14.
t/db_dependent/Items.t ....... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/14 subtests 

Test Summary Report
-------------------
t/db_dependent/Koha/Items.t (Wstat: 256 Tests: 11 Failed: 1)
  Failed test:  4
  Non-zero exit status: 1
t/db_dependent/Items.t     (Wstat: 256 Tests: 14 Failed: 1)
  Failed test:  14
  Non-zero exit status: 1
Files=2, Tests=25, 18 wallclock secs ( 0.07 usr  0.01 sys + 12.08 cusr  3.77
csys = 15.93 CPU)
Result: FAIL


Also please use build_sample_item to create a new item (vs my $item =
Koha::Item->new)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list