Skip to content

Commit

Permalink
Verify that only one firewall rule is created per ban.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aldaviva committed Dec 12, 2022
1 parent 542e5f3 commit dc8d9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Services/BanManagerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public void bansAfterEnoughFailures() {
}

Assert.NotEmpty(firewallRules);
FirewallWASRule actual = firewallRules.First();
FirewallWASRule actual = Assert.Single(firewallRules);
Assert.True(actual.IsEnable);
Assert.Equal("Banned 192.0.2.0/24", actual.Name);
Assert.Equal("Fail2Ban4Win", actual.Grouping);
Expand Down

0 comments on commit dc8d9de

Please sign in to comment.