mirror of https://github.com/fail2ban/fail2ban
fixes coverage of dbmaxmatches = 0
parent
46fc4c4615
commit
3e5b8fdc6a
|
@ -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 New Issue