mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
fixes coverage of dbmaxmatches = 0
This commit is contained in:
parent
46fc4c4615
commit
3e5b8fdc6a
1 changed files with 1 additions and 0 deletions
|
|
@ -380,6 +380,7 @@ class DatabaseTest(LogCaptureTestCase):
|
|||
maxmatches=0)
|
||||
self.assertEqual(len(ticket.getMatches()), 0)
|
||||
# dbmaxmatches = 0, should retrieve 0 matches by last ban:
|
||||
ticket.setMatches(["1","2","3"])
|
||||
self.db.maxMatches = 0;
|
||||
self.db.addBan(self.jail, ticket)
|
||||
ticket = self.db.getCurrentBans(self.jail, "127.0.0.1", fromtime=MyTime.time()-100)
|
||||
|
|
|
|||
Loading…
Reference in a new issue