Bug 13283

Summary: t/Overdues.t shouldn't depend on the DB
Product: Koha Reporter: Magnus Enger <magnus>
Component: Test SuiteAssignee: Chris Cormack <chris>
Status: CLOSED FIXED QA Contact: Galen Charlton <gmcharlt>
Severity: normal    
Priority: P5 - low CC: tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on:    
Bug Blocks: 13275    
Attachments: Bug 13283: t/Overdues.t shouldn't depend on the DB
Bug 13283: t/Overdues.t shouldn't depend on the DB
Bug 13283: t/Overdues.t shouldn't depend on the DB

Description Magnus Enger 2014-11-18 08:14:34 UTC
$ sudo -u kohadev-koha KOHA_CONF=/etc/koha/sites/kohadev/koha-conf.xml prove t/Overdues.t 
t/Overdues.t .. DBI connect('dbname=koha_kohadev;host=localhost;port=3306','koha_kohadev',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at C4/Context.pm line 785
t/Overdues.t .. 1/1 
#   Failed test 'use C4::Overdues;'
#   at t/Overdues.t line 12.
#     Tried to use 'C4::Overdues'.
#     Error:  Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at C4/Context.pm line 785.
# Compilation failed in require at C4/Reserves.pm line 28.
# BEGIN failed--compilation aborted at C4/Reserves.pm line 28.
# Compilation failed in require at C4/Circulation.pm line 27.
# BEGIN failed--compilation aborted at C4/Circulation.pm line 27.
# Compilation failed in require at C4/Overdues.pm line 28.
# BEGIN failed--compilation aborted at C4/Overdues.pm line 28.
# Compilation failed in require at t/Overdues.t line 12.
# BEGIN failed--compilation aborted at t/Overdues.t line 12.
# Looks like you failed 1 test of 1.
t/Overdues.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 

Test Summary Report
-------------------
t/Overdues.t (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=1, Tests=1,  1 wallclock secs ( 0.02 usr  0.00 sys +  0.56 cusr  0.56 csys =  1.14 CPU)
Result: FAIL
Comment 1 Tomás Cohen Arazi 2014-11-19 21:09:05 UTC Comment hidden (obsolete)
Comment 2 Robin Sheat 2014-11-20 00:33:53 UTC Comment hidden (obsolete)
Comment 3 Jonathan Druart 2014-11-20 09:59:21 UTC
Created attachment 33736 [details] [review]
Bug 13283: t/Overdues.t shouldn't depend on the DB

Signed-off-by: Robin Sheat <robin@catalyst.net.nz>

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Comment 4 Tomás Cohen Arazi 2014-11-20 12:49:40 UTC
Patch pushed to master.