From: Michael Tremer Date: Fri, 14 Oct 2022 12:45:20 +0000 (+0000) Subject: tests: Dump any messages in the queue X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea1b7ce331c8bc0616046f62fede93418e17af18;p=pbs.git tests: Dump any messages in the queue This is mainly useful for manual debugging Signed-off-by: Michael Tremer --- diff --git a/tests/test.py b/tests/test.py index 75b2989f..cbcd62a0 100644 --- a/tests/test.py +++ b/tests/test.py @@ -100,6 +100,10 @@ class TestCase(unittest.IsolatedAsyncioTestCase): await self._create_default_objects() async def asyncTearDown(self): + # Dump any messages in the message queue + for message in self.backend.messages: + print(message) + # Dump a listing of all temporary files with os.scandir(self.testdir.name) as listing: for entry in sorted(listing, key=lambda e: e.path):