From ecd4b91334a6e9b125bb8ed72f6ac0f307a148d8 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 Signed-off-by: Fridolin Somers --- 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 c925f1b7ba..f053bd115d 100755 --- a/t/db_dependent/Auth.t +++ b/t/db_dependent/Auth.t @@ -461,6 +461,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.20.1