From a865baaee766fb735a715f3c32338426043d7ca3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 25 Jan 2022 11:57:01 +0100 Subject: [PATCH] Bug 29914: Remove 'Use of uninitialized value ' warnings (cherry picked from commit 68c11c517907912dd27bc9bd1fd3bcf699bb6f82) Signed-off-by: Victor Grousset/tuxayo (cherry picked from commit 7d4fb54aead7133cdfd7400d3d5c8c06ad3d7034) Signed-off-by: Wainui Witika-Park --- t/db_dependent/Auth.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/db_dependent/Auth.t b/t/db_dependent/Auth.t index 39ef51ffbd..3e7a91d861 100644 --- a/t/db_dependent/Auth.t +++ b/t/db_dependent/Auth.t @@ -430,6 +430,8 @@ subtest 'check_cookie_auth' => sub { $cgi->mock( 'cookie', sub { return; } ); $cgi->mock( 'request_method', sub { return 'POST' } ); + $ENV{REMOTE_ADDR} = '127.0.0.1'; + # Setting authnotrequired=1 or we wont' hit the return but the end of the sub that prints headers my ( $userid, $cookie, $sessionID, $flags ) = C4::Auth::checkauth( $cgi, 1 ); -- 2.39.5