# along with Koha; if not, see <http://www.gnu.org/licenses>.
use Modern::Perl;
-use Test::More tests => 13;
+use Test::More tests => 12;
use Test::Warn;
-use C4::Auth qw / in_iprange /;
+use C4::Auth qw( in_iprange );
$ENV{REMOTE_ADDR} = '192.168.1.30';
ok(in_iprange(""), "blank list given, no preference set - implies everything goes through.");
ok(in_iprange(), "no list given, no preference set - implies everything goes through.");
ok(in_iprange("192.168.1.1/36"), 'simple invalid ip range/36 with remote ip in it');
-$ENV{DEBUG} = 1;
-warning_like { in_iprange("192.168.1.1/36") }
- qr/cidrlookup failed for/,
- 'noisy simple invalid ip range/36 with remote ip in it';