https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32622
Bug ID: 32622
Summary: Auth.t failing on D8
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Test Suite
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Caught by Jenkins
15:08:08 koha_1 | # Failed test 'While still logged in, relogin
with another user'
15:08:08 koha_1 | # at t/db_dependent/Auth.t line 219.
15:08:08 koha_1 | # Looks like you planned 7 tests but ran 6.
15:08:08 koha_1 | # Looks like you failed 1 test of 6 run.
15:08:08 koha_1 |
15:08:08 koha_1 | # Failed test 'checkauth() tests'
15:08:08 koha_1 | # at t/db_dependent/Auth.t line 331.
15:08:08 koha_1 | Can't locate object method "mock" via package "0"
(perhaps you forgot to load "0"?) at t/db_dependent/Auth.t line 176.
The code is:
t/db_dependent/Auth.t
175 my $mock2 = Test::MockModule->new('CGI') ->mock(
'request_method', 'POST' )
176 ->mock( 'cookie', sub
{ return $sessionID; } ); # oversimplified..
It's caused by a version mismatch of Test::MockModule with D8, which does not
have this commit:
https://github.com/geofffranks/test-mockmodule/commit/fef9e742e45e2437e3449eea9970d70555d44bff
We could remove the chaining, or... deactivate D8 builds, which should have
been already done actually :)
--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/