From e28453db1d80ab9b03081e7c988307bbffa9c09d Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Tue, 29 Nov 2022 12:32:38 +0530 Subject: [PATCH] Add a sleep(1) in tearDown --- src/bitmessagekivy/tests/telenium_process.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/bitmessagekivy/tests/telenium_process.py b/src/bitmessagekivy/tests/telenium_process.py index 94745612..b2ab7ba1 100644 --- a/src/bitmessagekivy/tests/telenium_process.py +++ b/src/bitmessagekivy/tests/telenium_process.py @@ -54,7 +54,13 @@ class TeleniumTestProcess(TeleniumTestCase): def tearDownClass(cls): """Ensures that pybitmessage stopped and removes files""" # pylint: disable=no-member - super(TeleniumTestProcess, cls).tearDownClass() + try: + sleep(1) + cls.process.kill() + except: + # pylint: disable=bad-super-call + sleep(1) + super(TeleniumTestCase, cls).tearDownClass() cleanup() def assert_wait_no_except(self, selector, timeout=-1, value='inbox'):