[Koha-bugs] [Bug 10611] C4::Context->dbh checks if the DB is still running

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 23 00:55:31 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10611

Galen Charlton <gmcharlt at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Needs Signoff               |Failed QA
                 CC|                            |gmcharlt at gmail.com

--- Comment #2 from Galen Charlton <gmcharlt at gmail.com> ---
This patch breaks test cases that mock C4::Context->_new_dbh():

t/db_dependent/Circulation_issuingrules.t .. 
1..7
ok 1 - use C4::Circulation;
not ok 2 - first matches

#   Failed test 'first matches'
#   at t/db_dependent/Circulation_issuingrules.t line 55.
#     Structures begin differing at:
#          $got->{issuelength} = '21'
#     $expected->{issuelength} = '10'
ok 3 - none matches
ok 4 - date expiry
ok 5 - date expiry
not ok 6 - date expiry ( 9 + 10 )

#   Failed test 'date expiry ( 9 + 10 )'
#   at t/db_dependent/Circulation_issuingrules.t line 119.
#          got: '2013-03-02T23:59:00'
#     expected: '2013-02-19T23:59:00'
not ok 7 - date expiry ( 9 + 5 )

#   Failed test 'date expiry ( 9 + 5 )'
#   at t/db_dependent/Circulation_issuingrules.t line 123.
#          got: '2013-03-02T23:59:00'
#     expected: '2013-02-14T23:59:00'
# Looks like you failed 3 tests of 7.
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/7 subtests 

Test Summary Report
-------------------
t/db_dependent/Circulation_issuingrules.t (Wstat: 768 Tests: 7 Failed: 3)
  Failed tests:  2, 6-7
  Non-zero exit status: 3
Files=1, Tests=7,  0 wallclock secs ( 0.03 usr  0.01 sys +  0.78 cusr  0.08
csys =  0.90 CPU)
Result: FAIL

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


More information about the Koha-bugs mailing list