Add a sleep(1) in tearDown

This commit is contained in:
shekhar-cis 2022-11-29 12:32:38 +05:30
parent 2d327352e2
commit e28453db1d
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7

View File

@ -54,7 +54,13 @@ class TeleniumTestProcess(TeleniumTestCase):
def tearDownClass(cls): def tearDownClass(cls):
"""Ensures that pybitmessage stopped and removes files""" """Ensures that pybitmessage stopped and removes files"""
# pylint: disable=no-member # 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() cleanup()
def assert_wait_no_except(self, selector, timeout=-1, value='inbox'): def assert_wait_no_except(self, selector, timeout=-1, value='inbox'):