[Koha-bugs] [Bug 21985] Test t/db_dependent/Circulation.t fails if SearchEngine is set to elasticsearch
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Mar 11 04:40:30 CET 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21985
Hayley Mapley <hayleymapley at catalyst.net.nz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Needs Signoff |Patch doesn't apply
--- Comment #5 from Hayley Mapley <hayleymapley at catalyst.net.nz> ---
Before applying the patch, I get this error when trying to prove those tests:
t/db_dependent/Circulation.t .. 61/126 DBD::mysql::st execute failed: Duplicate
entry '10' for key 'PRIMARY' [for Statement "INSERT INTO `old_issues` (
`auto_renew`, `auto_renew_error`, `borrowernumber`, `branchcode`, `date_due`,
`issue_id`, `issuedate`, `itemnumber`, `lastreneweddate`, `note`, `notedate`,
`noteseen`, `onsite_checkout`, `renewals`, `returndate`, `timestamp`) VALUES (
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" with ParamValues: 0=0,
1=undef, 2=54, 3='bWmeAOZip', 4='2019-03-25 23:59:00', 5=10, 6='2019-03-11
03:36:44', 7=991, 8=undef, 9=undef, 10=undef, 11=undef, 12=0, 13=undef,
14='2019-03-11 03:36:47', 15='2019-03-11 03:36:47'] at
/usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1836.
{UNKNOWN}: Can't locate object method "rethrow" via package "DBD::mysql::st
execute failed: Duplicate entry '10' for key 'PRIMARY' [for Statement "INSERT
INTO `old_issues` ( `auto_renew`, `auto_renew_error`, `borrowernumber`,
`branchcode`, `date_due`, `issue_id`, `issuedate`, `itemnumber`,
`lastreneweddate`, `note`, `notedate`, `noteseen`, `onsite_checkout`,
`renewals`, `returndate`, `timestamp`) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ? )" with ParamValues: 0=0, 1=undef, 2=54, 3='bWmeAOZip',
4='2019-03-25 23:59:00', 5=10, 6='2019-03-11 03:36:44', 7=991, 8=undef,
9=undef, 10=undef, 11=undef, 12=0, 13=undef, 14='2019-03-11 03:36:47',
15='2019-03-11 03:36:47'] at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line
1836.
" (perhaps you forgot to load "DBD::mysql::st execute failed: Duplicate entry
'10' for key 'PRIMARY' [for Statement "INSERT INTO `old_issues` ( `auto_renew`,
`auto_renew_error`, `borrowernumber`, `branchcode`, `date_due`, `issue_id`,
`issuedate`, `itemnumber`, `lastreneweddate`, `note`, `notedate`, `noteseen`,
`onsite_checkout`, `renewals`, `returndate`, `timestamp`) VALUES ( ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )" with ParamValues: 0=0, 1=undef, 2=54,
3='bWmeAOZip', 4='2019-03-25 23:59:00', 5=10, 6='2019-03-11 03:36:44', 7=991,
8=undef, 9=undef, 10=undef, 11=undef, 12=0, 13=undef, 14='2019-03-11 03:36:47',
15='2019-03-11 03:36:47'] at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line
1836.
"?) at /home/vagrant/kohaclone/Koha/Object.pm line 185. at
/home/vagrant/kohaclone/C4/Circulation.pm line 2206
# Looks like your test exited with 255 just after 71.
t/db_dependent/Circulation.t .. Dubious, test returned 255 (wstat 65280,
0xff00)
Failed 55/126 subtests
Test Summary Report
-------------------
t/db_dependent/Circulation.t (Wstat: 65280 Tests: 71 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 126 tests but ran 71.
Files=1, Tests=71, 7 wallclock secs ( 0.03 usr 0.01 sys + 3.42 cusr 0.38
csys = 3.84 CPU)
Result: FAIL
And the patch does not apply:
Applying: Bug 21985: Fix Circulation tests when ES it set, by using
build_sample_item
error: sha1 information is lacking or useless (t/db_dependent/Circulation.t).
error: could not build fake ancestor
Patch failed at 0001 Bug 21985: Fix Circulation tests when ES it set, by using
build_sample_item
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list