From e1c83e8b27da8b25d27522c125a41833fc695edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 14 Feb 2024 23:13:24 +0100 Subject: [PATCH] tests: Ensure the daemon exits with no error We did terminate the daemon and waited for it, but we did not ensure that it was terminated with no error. This is particularly a problem when we are running the sanitizers or valgrind, because we didn't catch any error. Thus... We were living with some leaks that we never caught :) --- tests/integration_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration_test.py b/tests/integration_test.py index dd64c6f..0ddb4c0 100644 --- a/tests/integration_test.py +++ b/tests/integration_test.py @@ -258,7 +258,7 @@ class Tests(dbusmock.DBusTestCase): self.daemon.terminate() except OSError: pass - self.daemon.wait(timeout=3000) + self.assertEqual(self.daemon.wait(timeout=3000), 0) self.daemon = None self.proxy = None