From a4d4f7b8f8d5800836a498c29e7a16de9a3fc806 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Mon, 16 Dec 2013 22:35:27 +0000 Subject: [PATCH] TST: fix testIgnoreInProcessLine to occur at MyTime --- fail2ban/tests/filtertestcase.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fail2ban/tests/filtertestcase.py b/fail2ban/tests/filtertestcase.py index d19d791a..5f7fba23 100644 --- a/fail2ban/tests/filtertestcase.py +++ b/fail2ban/tests/filtertestcase.py @@ -234,10 +234,12 @@ class IgnoreIP(LogCaptureTestCase): self.assertFalse(self.filter.inIgnoreIPList('192.168.0.255')) def testIgnoreInProcessLine(self): + setUpMyTime() self.filter.addIgnoreIP('192.168.1.0/25') self.filter.addFailRegex('') self.filter.processLineAndAdd('1387203300.222 192.168.1.32') self.assertTrue(self._is_logged('Ignore 192.168.1.32')) + tearDownMyTime() def testIgnoreAddBannedIP(self): self.filter.addIgnoreIP('192.168.1.0/25')