From 7de862deb2594b16e7c2507a7a1ca8eb21edc69b Mon Sep 17 00:00:00 2001 From: evazion Date: Thu, 17 Jun 2021 05:06:40 -0500 Subject: [PATCH] test: fix random ip ban test failure. Fix IP ban tests randomly failing because the randomly generated IP was for a private network, which caused validation to fail. --- test/functional/ip_bans_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/ip_bans_controller_test.rb b/test/functional/ip_bans_controller_test.rb index 2ac8f3075..e146b2ce6 100644 --- a/test/functional/ip_bans_controller_test.rb +++ b/test/functional/ip_bans_controller_test.rb @@ -32,7 +32,7 @@ class IpBansControllerTest < ActionDispatch::IntegrationTest setup do CurrentUser.user = @admin @subnet_ban = create(:ip_ban, ip_addr: "2.0.0.0/24", creator: @admin) - @other_ban = create(:ip_ban, reason: "malware") + @other_ban = create(:ip_ban, ip_addr: "1.2.3.4", reason: "malware") end should "render access denied for anonymous users" do