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.
This commit is contained in:
evazion
2021-06-17 05:06:40 -05:00
parent 8af946a49d
commit 7de862deb2

View File

@@ -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