Increase timeout for _stop_process and made changes in travis

This commit is contained in:
jai.s 2020-10-12 15:11:13 +05:30
parent 25ec3dbe75
commit 98630f3e38
No known key found for this signature in database
GPG Key ID: 360CFA25EFC67D12
2 changed files with 3 additions and 6 deletions

View File

@ -14,5 +14,5 @@ install:
- python setup.py install - python setup.py install
script: script:
- python checkdeps.py - python checkdeps.py
- src/bitmessagemain.py -t # - src/bitmessagemain.py -t
- python setup.py test - python setup.py test

View File

@ -31,8 +31,7 @@ class TestProcessProto(unittest.TestCase):
_threads_count = 15 _threads_count = 15
_files = ( _files = (
'keys.dat', 'messages.dat', 'knownnodes.dat', 'keys.dat', 'messages.dat', 'knownnodes.dat',
'.api_started', 'unittest.lock','singleton.lock' '.api_started', 'unittest.lock','debug.log')
)
@classmethod @classmethod
def setUpClass(cls): def setUpClass(cls):
@ -54,7 +53,7 @@ class TestProcessProto(unittest.TestCase):
pass pass
@classmethod @classmethod
def _stop_process(cls, timeout=5): def _stop_process(cls, timeout=60):
cls.process.send_signal(signal.SIGTERM) cls.process.send_signal(signal.SIGTERM)
try: try:
cls.process.wait(timeout) cls.process.wait(timeout)
@ -65,8 +64,6 @@ class TestProcessProto(unittest.TestCase):
print('55555555555555555') print('55555555555555555')
except: except:
pass pass
logger.error('_stop_process')
logger.error('this condition are getting killed are not')
logger.error('__stop__process') logger.error('__stop__process')
except psutil.TimeoutExpired: except psutil.TimeoutExpired:
logger.error('#####_stop_process method condition--##') logger.error('#####_stop_process method condition--##')