diff --git a/tests/mockLogzioListener/listener.py b/tests/mockLogzioListener/listener.py index df97218..213756f 100644 --- a/tests/mockLogzioListener/listener.py +++ b/tests/mockLogzioListener/listener.py @@ -73,7 +73,7 @@ class MockLogzioListener: return len(self.logs_list) def clear_logs_buffer(self): - self.logs_list = [] + self.logs_list[:] = [] def set_server_error(self): self.persistent_flags.set_server_error() diff --git a/tests/test_logzioSender.py b/tests/test_logzioSender.py index 9556e7f..420688b 100644 --- a/tests/test_logzioSender.py +++ b/tests/test_logzioSender.py @@ -21,6 +21,7 @@ def _find(pattern, path): class TestLogzioSender(TestCase): def setUp(self): self.logzio_listener = listener.MockLogzioListener() + self.logzio_listener.clear_logs_buffer() self.logzio_listener.clear_server_error() self.logs_drain_timeout = 1