[Koha-bugs] [Bug 32622] New: Auth.t failing on D8

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 13 12:11:55 CET 2023


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: chris at bigballofwax.co.nz
          Reporter: jonathan.druart+koha at gmail.com
        QA Contact: testopia at bugs.koha-community.org

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.


More information about the Koha-bugs mailing list