mirror of https://github.com/fail2ban/fail2ban
remove double call of inherited setup in test cases;
previously caused that after that no restore of log-handler takes place in `tearDown` later, so after that tests it remains by `LogCaptureTestCase._MemHandler`, so every future logged message disappear in nirvana; partially fixes #3635pull/3402/merge
parent
22ce0c0536
commit
cdb6607261
|
@ -54,7 +54,6 @@ class Socket(LogCaptureTestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
"""Call before every test case."""
|
"""Call before every test case."""
|
||||||
LogCaptureTestCase.setUp(self)
|
|
||||||
super(Socket, self).setUp()
|
super(Socket, self).setUp()
|
||||||
self.server = AsyncServer(self)
|
self.server = AsyncServer(self)
|
||||||
sock_fd, sock_name = tempfile.mkstemp('fail2ban.sock', 'f2b-socket')
|
sock_fd, sock_name = tempfile.mkstemp('fail2ban.sock', 'f2b-socket')
|
||||||
|
@ -68,7 +67,7 @@ class Socket(LogCaptureTestCase):
|
||||||
if self.serverThread:
|
if self.serverThread:
|
||||||
self.server.stop(); # stop if not already stopped
|
self.server.stop(); # stop if not already stopped
|
||||||
self._stopServerThread()
|
self._stopServerThread()
|
||||||
LogCaptureTestCase.tearDown(self)
|
super(Socket, self).tearDown()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def proceed(message):
|
def proceed(message):
|
||||||
|
|
Loading…
Reference in New Issue